merge from 0.9.6.6
authorStefan Behnel <scoder@users.berlios.de>
Wed, 12 Sep 2007 08:15:04 +0000 (10:15 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Wed, 12 Sep 2007 08:15:04 +0000 (10:15 +0200)
1  2 
Cython/Compiler/ModuleNode.py
Cython/Compiler/Nodes.py
Cython/Compiler/PyrexTypes.py

Simple merge
Simple merge
index 27eb2780170083bb4774bf3327be23174d2785bf,d05db0ce98431676b2c094debed9c8cf74ea7d90..6853f67f0ba1e85829aa33d2510d47b2aba8bf2f
@@@ -709,10 -714,9 +714,11 @@@ class CStringType
      
      to_py_function = "PyString_FromString"
      from_py_function = "PyString_AsString"
+     exception_value = "NULL"
  
      def literal_code(self, value):
 +        if isinstance(value, unicode):
 +            value = value.encode("UTF-8")
          return '"%s"' % value