mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
Run 2to3's print fixer over some places that had been missed.
This commit is contained in:
parent
716c3ac40c
commit
e7bf59f500
51 changed files with 253 additions and 253 deletions
|
|
@ -34,7 +34,7 @@ def copyres(src, dst):
|
|||
id, type, name = res.GetResInfo()
|
||||
size = res.SizeResource()
|
||||
attrs = res.GetResAttrs()
|
||||
print id, type, name, size, hex(attrs)
|
||||
print(id, type, name, size, hex(attrs))
|
||||
res.DetachResource()
|
||||
UseResFile(output)
|
||||
try:
|
||||
|
|
@ -42,15 +42,15 @@ def copyres(src, dst):
|
|||
except (RuntimeError, Res.Error) as msg:
|
||||
res2 = None
|
||||
if res2:
|
||||
print "Duplicate type+id, not copied"
|
||||
print("Duplicate type+id, not copied")
|
||||
print (res2.size, res2.data)
|
||||
print res2.GetResInfo()
|
||||
print(res2.GetResInfo())
|
||||
if res2.HomeResFile() == output:
|
||||
'OK'
|
||||
elif res2.HomeResFile() == input:
|
||||
'BAD!'
|
||||
else:
|
||||
print 'Home:', res2.HomeResFile()
|
||||
print('Home:', res2.HomeResFile())
|
||||
else:
|
||||
res.AddResource(type, id, name)
|
||||
#res.SetResAttrs(attrs)
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ def list1resources():
|
|||
ntypes = Res.Count1Types()
|
||||
for itype in range(1, 1+ntypes):
|
||||
type = Res.Get1IndType(itype)
|
||||
print "Type:", repr(type)
|
||||
print("Type:", repr(type))
|
||||
nresources = Res.Count1Resources(type)
|
||||
for i in range(1, 1 + nresources):
|
||||
Res.SetResLoad(0)
|
||||
|
|
@ -19,7 +19,7 @@ def listresources():
|
|||
ntypes = Res.CountTypes()
|
||||
for itype in range(1, 1+ntypes):
|
||||
type = Res.GetIndType(itype)
|
||||
print "Type:", repr(type)
|
||||
print("Type:", repr(type))
|
||||
nresources = Res.CountResources(type)
|
||||
for i in range(1, 1 + nresources):
|
||||
Res.SetResLoad(0)
|
||||
|
|
@ -28,7 +28,7 @@ def listresources():
|
|||
info(res)
|
||||
|
||||
def info(res):
|
||||
print res.GetResInfo(), res.SizeResource(), decodeattrs(res.GetResAttrs())
|
||||
print(res.GetResInfo(), res.SizeResource(), decodeattrs(res.GetResAttrs()))
|
||||
|
||||
attrnames = {
|
||||
resChanged: 'Changed',
|
||||
|
|
@ -51,9 +51,9 @@ def decodeattrs(attrs):
|
|||
return names
|
||||
|
||||
def test():
|
||||
print "=== Local resourcess ==="
|
||||
print("=== Local resourcess ===")
|
||||
list1resources()
|
||||
print "=== All resources ==="
|
||||
print("=== All resources ===")
|
||||
listresources()
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue