Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Menu
Open sidebar
NTPsec
ntpsec
Commits
ed9efa67
Commit
ed9efa67
authored
Nov 27, 2016
by
Matt Selsky
Browse files
chr() only takes integers
parent
29107b30
Changes
1
Hide whitespace changes
Inline
Side-by-side
pylib/packet.py
View file @
ed9efa67
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment