[Git][NTPsec/ntpsec][master] Fix STR_CLASS undefined error.
Eric S. Raymond
gitlab at mg.gitlab.com
Thu Aug 11 18:18:08 UTC 2016
Eric S. Raymond pushed to branch master at NTPsec / ntpsec
Commits:
30c20c48 by Eric S. Raymond at 2016-08-11T14:17:59-04:00
Fix STR_CLASS undefined error.
- - - - -
1 changed file:
- ntpstats/ntpstats.py
Changes:
=====================================
ntpstats/ntpstats.py
=====================================
--- a/ntpstats/ntpstats.py
+++ b/ntpstats/ntpstats.py
@@ -264,7 +264,7 @@ def isotime(s):
msec = s - date
date = time.strftime("%Y-%m-%dT%H:%M:%S", time.localtime(s))
return date + "." + repr(msec)[3:]
- elif isinstance(s, STR_CLASS):
+ elif isinstance(s, str) or isinstance(s, unicode)::
if s[-1] == "Z":
s = s[:-1]
if "." in s:
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/30c20c48a8f54c079627926fd60bb29eaf9bb612
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20160811/b5646c40/attachment.html>
More information about the vc
mailing list