Commit 6dd0be6f authored by Thanassis Tsiodras's avatar Thanassis Tsiodras Committed by GitHub

Merge pull request #4 from hcorg/xrange_removed

replaced generating `xrange` with `range` in python and sqlalchemy mappers
parents 0d3aaf82 53f0af23
......@@ -496,7 +496,7 @@ def DumpTypeDumper(
lines.append(codeIndent + "state = self.GetState()")
lines.append(codeIndent + "length = %s.GetLength()" % variableName)
lines.append(codeIndent + "self.Reset(state)")
lines.append(codeIndent + "map(partial(emitElem, %s), xrange(length))" % variableName)
lines.append(codeIndent + "map(partial(emitElem, %s), range(length))" % variableName)
lines.append(codeIndent + 'self.Reset(state)')
lines.append(codeIndent + 'lines.append("}")')
......
......@@ -500,7 +500,7 @@ class {cleanTypename}_SQL(Base):
def __init__(self, pyObj):
self._children = []
state = pyObj.GetState()
for i in xrange(pyObj.GetLength()):
for i in range(pyObj.GetLength()):
pyObj.Reset(state)
newIndex = {cleanTypename}_indexes_SQL()
newIndex.idx = i
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment