most tests pass for python 3

This commit is contained in:
David Halter
2012-05-20 00:21:21 +02:00
parent c95510cf50
commit 8d523db9d9
4 changed files with 13 additions and 5 deletions
+7
View File
@@ -50,6 +50,13 @@ except AttributeError:
else:
property = property
# unicode function
try:
unicode = unicode
except NameError:
def unicode(s):
return s.decode("utf-8")
# Borrowed from Ned Batchelder
if sys.hexversion > 0x03000000:
def exec_function(source, global_map):