Change Str to String for PyString_CheckExact call.

diff --git a/Cython/Compiler/PyrexTypes.py b/Cython/Compiler/PyrexTypes.py
--- a/Cython/Compiler/PyrexTypes.py
+++ b/Cython/Compiler/PyrexTypes.py
@@ -302,7 +302,9 @@

      def type_test_code(self, arg):
          type = self.name.capitalize()
-        if type == 'Set':
+        if type == 'Str':
+            type = 'String'
+        elif type == 'Set':
              type = 'AnySet'
          elif type == 'Frozenset':
              type = 'FrozenSet'
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to