CodernityDB 2to3

This commit is contained in:
Ruud
2014-10-06 17:26:14 +02:00
parent 08cb834b4d
commit 4775e4a36a
9 changed files with 35 additions and 35 deletions
+2 -2
View File
@@ -232,7 +232,7 @@ class Database(object):
name = s[0][2:]
c = s[1][2:]
comented = ['\n\n#SIMPLIFIED CODE']
list(map(lambda x: comented.append("#" + x), new_index.splitlines()))
list([comented.append("#" + x) for x in new_index.splitlines()])
comented.append('#SIMPLIFIED CODE END\n\n')
s = header_for_indexes(
@@ -1198,7 +1198,7 @@ you should check index code.""" % (index.name, ex), RuntimeWarning)
raise IndexNotFoundException("Index doesn't exist")
props = {}
for key, value in db_index.__dict__.items():
for key, value in list(db_index.__dict__.items()):
if not isinstance(value, collections.Callable): # not using inspect etc...
props[key] = value