[Git][NTPsec/ntpsec][master] python scripts don't need to import ntp.version directly
Matt Selsky
gitlab at mg.gitlab.com
Sun Mar 4 06:30:03 UTC 2018
Matt Selsky pushed to branch master at NTPsec / ntpsec
Commits:
e568c71f by Matt Selsky at 2018-03-04T06:17:10Z
python scripts don't need to import ntp.version directly
ntp.util.stdversion() provides the version string
- - - - -
2 changed files:
- ntpclients/ntpmon.py
- ntpclients/ntpq.py
Changes:
=====================================
ntpclients/ntpmon.py
=====================================
--- a/ntpclients/ntpmon.py
+++ b/ntpclients/ntpmon.py
@@ -37,7 +37,6 @@ try:
import ntp.ntpc
import ntp.packet
import ntp.util
- import ntp.version
except ImportError as e:
sys.stderr.write(
"ntpmon: can't find Python NTP library -- check PYTHONPATH.\n")
=====================================
ntpclients/ntpq.py
=====================================
--- a/ntpclients/ntpq.py
+++ b/ntpclients/ntpq.py
@@ -27,7 +27,6 @@ try:
import ntp.ntpc
import ntp.packet
import ntp.util
- import ntp.version
except ImportError as e:
sys.stderr.write(
"ntpq: can't find Python NTP library -- check PYTHONPATH.\n")
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/e568c71fcdfb040f21e1c4f747b2b4938fa33402
---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/e568c71fcdfb040f21e1c4f747b2b4938fa33402
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20180304/a1501a68/attachment.html>
More information about the vc
mailing list