[Git][NTPsec/ntpsec][master] chr() only takes integers
Eric S. Raymond
gitlab at mg.gitlab.com
Sun Nov 27 19:15:15 UTC 2016
Eric S. Raymond pushed to branch master at NTPsec / ntpsec
Commits:
ed9efa67 by Matt Selsky at 2016-11-27T14:10:55-05:00
chr() only takes integers
- - - - -
1 changed file:
- pylib/packet.py
Changes:
=====================================
pylib/packet.py
=====================================
--- a/pylib/packet.py
+++ b/pylib/packet.py
@@ -252,7 +252,7 @@ else: # Python 3
def polychr(c):
"Polymorphic chr() function"
- if not isinstance(c, str):
+ if isinstance(c, int):
return chr(c)
else:
return c
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/ed9efa67f865756f5d13b911687b94f43e582a16
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20161127/e1ba80bd/attachment.html>
More information about the vc
mailing list