MNT: Print function -> Print statement
This commit is contained in:
parent
2888546de6
commit
934c2e437f
|
@ -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)
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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])
|
||||||
|
|
|
@ -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))
|
||||||
|
|
Loading…
Reference in New Issue