[Git][NTPsec/ntpsec][master] Fix undefined variable in ntpviz

Matt Selsky gitlab at mg.gitlab.com
Fri Jan 6 05:53:24 UTC 2017


Matt Selsky pushed to branch master at NTPsec / ntpsec


Commits:
c1751623 by Matt Selsky at 2017-01-06T00:51:14-05:00
Fix undefined variable in ntpviz

Detected by pyflakes
ntpclients/ntpviz:1351: undefined name 'version'

- - - - -


1 changed file:

- ntpclients/ntpviz


Changes:

=====================================
ntpclients/ntpviz
=====================================
--- a/ntpclients/ntpviz
+++ b/ntpclients/ntpviz
@@ -1348,7 +1348,7 @@ Python by ESR, concept and gnuplot code by Dan Drown.
     if 0 < args.debug_level:
         sys.stderr.write("ntpviz: INFO: now running at debug: %s\n" %
                          args.debug_level)
-        sys.stderr.write("ntpviz: INFO: Version: %s\n" % version)
+        sys.stderr.write("ntpviz: INFO: Version: %s\n" % ntp.util.stdversion())
         sys.stderr.write("ntpviz: INFO: Parsed Options %s\n" % args)
 
         if 9 == args.debug_level:



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/c1751623015d34d3fbc488f571891d1253ca6ef3
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170106/7423f4f8/attachment.html>


More information about the vc mailing list