From: Stefan Behnel Date: Sun, 11 Oct 2009 07:59:44 +0000 (+0200) Subject: safety fix X-Git-Tag: 0.13.beta0~2^2~121^2~77 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=899791e91421f595415ea4243b4e73ac6af83dcc;p=cython.git safety fix --- diff --git a/Cython/Compiler/Code.py b/Cython/Compiler/Code.py index 4afdd28f..fd482ad1 100644 --- a/Cython/Compiler/Code.py +++ b/Cython/Compiler/Code.py @@ -310,7 +310,7 @@ class StringConst(object): if encoding is not None: encoding = encoding.upper() - is_str = identifier or bool(is_str) + is_str = bool(identifier or is_str) key = (is_str, encoding) if py_strings is not None and key in py_strings: