projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a59f088
)
prevent unicode strings from being interned
author
Stefan Behnel
<scoder@users.berlios.de>
Wed, 5 Mar 2008 17:05:27 +0000
(18:05 +0100)
committer
Stefan Behnel
<scoder@users.berlios.de>
Wed, 5 Mar 2008 17:05:27 +0000
(18:05 +0100)
Cython/Compiler/Symtab.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/Symtab.py
b/Cython/Compiler/Symtab.py
index bd252c10b9db3dc7d2110f74b609200041b4024a..ab48aae049c3406dfa076014f7ea2bcf8cba0b85 100644
(file)
--- a/
Cython/Compiler/Symtab.py
+++ b/
Cython/Compiler/Symtab.py
@@
-442,7
+442,7
@@
class Scope:
# Python identifier, it will be interned.
if not entry.pystring_cname:
value = entry.init
- if identifier_pattern.match(value):
+ if identifier_pattern.match(value)
and isinstance(value, str)
:
entry.pystring_cname = self.intern(value)
entry.is_interned = 1
else: