[Git][NTPsec/ntpsec][master] Fix so smartctl-temp-log works in Pyth 2 and 3

Gary E. Miller gitlab at mg.gitlab.com
Sat Sep 10 18:16:56 UTC 2016


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


Commits:
4bc0dca2 by Gary E. Miller at 2016-09-10T11:16:17-07:00
Fix so smartctl-temp-log works in Pyth 2 and 3

- - - - -


1 changed file:

- contrib/smartctl-temp-log


Changes:

=====================================
contrib/smartctl-temp-log
=====================================
--- a/contrib/smartctl-temp-log
+++ b/contrib/smartctl-temp-log
@@ -51,7 +51,7 @@ try:
         stderr=subprocess.STDOUT, \
         universal_newlines=True)
 
-except subprocess.CalledProcessError, e:
+except subprocess.CalledProcessError as e:
     sys.stderr.write( "ERROR: 'smartctl -a %s' failed\n" % device)
     sys.stderr.write( e.output )
     sys.stderr.write( "Return code: %s\n" % e.returncode )



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/4bc0dca2623d506136bb41f709a984f0551b81dd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20160910/9d1098c0/attachment.html>


More information about the vc mailing list