[entropy.const] properly convert None type objects to unicode

This commit is contained in:
Fabio Erculiani
2009-10-31 14:36:05 +01:00
parent 927b235c86
commit 30f09fa28b
+1 -1
View File
@@ -1427,7 +1427,7 @@ def const_convert_to_unicode(obj, enctype = 'raw_unicode_escape'):
# None support
if obj is None:
return "None"
return const_convert_to_unicode("None")
# int support
if isinstance(obj, int):