[pypy-svn] r37734 - pypy/dist/pypy/translator/cli

antocuni at codespeak.net antocuni at codespeak.net
Thu Feb 1 15:31:26 CET 2007


Author: antocuni
Date: Thu Feb  1 15:31:25 2007
New Revision: 37734

Modified:
   pypy/dist/pypy/translator/cli/dotnet.py
Log:
Pay attention to unicode objects.



Modified: pypy/dist/pypy/translator/cli/dotnet.py
==============================================================================
--- pypy/dist/pypy/translator/cli/dotnet.py	(original)
+++ pypy/dist/pypy/translator/cli/dotnet.py	Thu Feb  1 15:31:25 2007
@@ -317,7 +317,7 @@
         return CLR.System.Boolean(x)
     elif t is float:
         return CLR.System.Double(x)
-    elif t is str:
+    elif t is str or t is unicode:
         if len(x) == 1:
             return CLR.System.Char(x)
         else:



More information about the Pypy-commit mailing list