Commit ed9efa67 authored by Matt Selsky's avatar Matt Selsky
Browse files

chr() only takes integers

parent 29107b30
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment