Commit 899791e9 authored by Stefan Behnel's avatar Stefan Behnel

safety fix

parent 171d69cb
...@@ -310,7 +310,7 @@ class StringConst(object): ...@@ -310,7 +310,7 @@ class StringConst(object):
if encoding is not None: if encoding is not None:
encoding = encoding.upper() encoding = encoding.upper()
is_str = identifier or bool(is_str) is_str = bool(identifier or is_str)
key = (is_str, encoding) key = (is_str, encoding)
if py_strings is not None and key in py_strings: if py_strings is not None and key in py_strings:
......
Markdown is supported
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