mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
xrange
This commit is contained in:
parent
051183eda9
commit
2089dc7fce
@ -58,7 +58,7 @@ def findClass(namespace, className):
|
|||||||
def rebindClass(builtinGlobals, filename):
|
def rebindClass(builtinGlobals, filename):
|
||||||
file = open(filename, 'r')
|
file = open(filename, 'r')
|
||||||
lines = file.readlines()
|
lines = file.readlines()
|
||||||
for i in range(len(lines)):
|
for i in xrange(len(lines)):
|
||||||
line = lines[i]
|
line = lines[i]
|
||||||
if (line[0:6] == 'class '):
|
if (line[0:6] == 'class '):
|
||||||
# Chop off the "class " syntax and strip extra whitespace
|
# Chop off the "class " syntax and strip extra whitespace
|
||||||
|
Loading…
x
Reference in New Issue
Block a user