MNT: Print function -> Print statement

This commit is contained in:
Eric Dill 2015-07-11 11:17:48 -05:00
parent 2888546de6
commit 934c2e437f
5 changed files with 7 additions and 7 deletions

View File

@ -9,6 +9,6 @@ path = os.path.join(os.path.dirname(os.path.abspath(__file__)), '..')
for a, b in dirs: for a, b in dirs:
rst = [os.path.splitext(x)[0].lower() for x in os.listdir(os.path.join(path, 'documentation', 'source', a))] rst = [os.path.splitext(x)[0].lower() for x in os.listdir(os.path.join(path, 'documentation', 'source', a))]
py = [os.path.splitext(x)[0].lower() for x in os.listdir(os.path.join(path, b))] py = [os.path.splitext(x)[0].lower() for x in os.listdir(os.path.join(path, b))]
print a print(a)
for x in set(py) - set(rst): for x in set(py) - set(rst):
print " ", x print( " ", x)

View File

@ -23,7 +23,7 @@ ViewBox
VTickGroup""".split('\n') VTickGroup""".split('\n')
for f in files: for f in files:
print f print(f)
fh = open(f.lower()+'.rst', 'w') fh = open(f.lower()+'.rst', 'w')
fh.write( fh.write(
"""%s """%s

View File

@ -17,7 +17,7 @@ TreeWidget
VerticalLabel""".split('\n') VerticalLabel""".split('\n')
for f in files: for f in files:
print f print(f)
fh = open(f.lower()+'.rst', 'w') fh = open(f.lower()+'.rst', 'w')
fh.write( fh.write(
"""%s """%s

View File

@ -28,8 +28,8 @@ def test_exit_crash():
obj = getattr(pg, name) obj = getattr(pg, name)
if not isinstance(obj, type) or not issubclass(obj, pg.QtGui.QWidget): if not isinstance(obj, type) or not issubclass(obj, pg.QtGui.QWidget):
continue continue
print name print(name)
argstr = initArgs.get(name, "") argstr = initArgs.get(name, "")
open(tmp, 'w').write(code.format(path=path, classname=name, args=argstr)) open(tmp, 'w').write(code.format(path=path, classname=name, args=argstr))
proc = subprocess.Popen([sys.executable, tmp]) proc = subprocess.Popen([sys.executable, tmp])

View File

@ -47,4 +47,4 @@ class GarbageCollector(object):
def debug_cycles(self): def debug_cycles(self):
gc.collect() gc.collect()
for obj in gc.garbage: for obj in gc.garbage:
print (obj, repr(obj), type(obj)) print(obj, repr(obj), type(obj))