We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a28fbf commit a8666f6Copy full SHA for a8666f6
1 file changed
javaobj/utils.py
@@ -73,6 +73,7 @@ def log_error(message, ident=0):
73
74
if sys.version_info[0] >= 3:
75
UNICODE_TYPE = str
76
+ unicode_char = chr
77
78
# Python 3 interpreter : bytes & str
79
def to_bytes(data, encoding="UTF-8"):
@@ -118,6 +119,7 @@ def read_to_str(data):
118
119
120
else:
121
UNICODE_TYPE = unicode
122
+ unicode_char = unichr
123
124
# Python 2 interpreter : str & unicode
125
def to_str(data, encoding="UTF-8"):
0 commit comments