projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e13327c
)
fix identifier decoding check
author
Stefan Behnel
<scoder@users.berlios.de>
Sat, 24 Oct 2009 13:43:24 +0000
(15:43 +0200)
committer
Stefan Behnel
<scoder@users.berlios.de>
Sat, 24 Oct 2009 13:43:24 +0000
(15:43 +0200)
Cython/Compiler/ExprNodes.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/ExprNodes.py
b/Cython/Compiler/ExprNodes.py
index 8130a56eebdfbb4ec5642ebdb37e15ce5a0924c9..863e54ba9866b048b46c7cb8b3ba63a325c04c10 100644
(file)
--- a/
Cython/Compiler/ExprNodes.py
+++ b/
Cython/Compiler/ExprNodes.py
@@
-926,8
+926,8
@@
class StringNode(PyConstNode):
self.check_for_coercion_error(dst_type, fail=True)
# this will be a unicode string in Py3, so make sure we can decode it
- if
not self.is_identifier
:
- encoding = self.value.encoding
or 'UTF-8'
+ if
self.value.encoding
:
+ encoding = self.value.encoding
try:
self.value.decode(encoding)
except UnicodeDecodeError: