[Git][NTPsec/ntpsec][master] Fix print() for Python 3 compatibility

Gary E. Miller gitlab at mg.gitlab.com
Mon Aug 22 18:42:27 UTC 2016


Gary E. Miller pushed to branch master at NTPsec / ntpsec


Commits:
358ca1b9 by Gary E. Miller at 2016-08-22T11:41:47-07:00
Fix print() for Python 3 compatibility

- - - - -


2 changed files:

- contrib/pi-temp-log
- contrib/temper-temp-log


Changes:

=====================================
contrib/pi-temp-log
=====================================
--- a/contrib/pi-temp-log
+++ b/contrib/pi-temp-log
@@ -43,4 +43,4 @@ f.close()
 
 temp /= 1000
 
-print str(now) + ' PI ' + str(temp)
+print( str(now) + ' PI ' + str(temp))


=====================================
contrib/temper-temp-log
=====================================
--- a/contrib/temper-temp-log
+++ b/contrib/temper-temp-log
@@ -36,4 +36,4 @@ output = subprocess.check_output(["temper-poll", "-c"], universal_newlines=True)
 now = int(time.time())
 
 temp = float( output )
-print str(now) + ' TEMPER ' + str(temp)
+print( str(now) + ' TEMPER ' + str(temp))



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/358ca1b9db15416a91f68943d6699aa3a9f3f056
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20160822/034b630c/attachment.html>


More information about the vc mailing list