summaryrefslogtreecommitdiffstats
path: root/Mac/Demo/resources/listres.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mac/Demo/resources/listres.py')
-rw-r--r--Mac/Demo/resources/listres.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Mac/Demo/resources/listres.py b/Mac/Demo/resources/listres.py
index 6ce5779..8f391eb 100644
--- a/Mac/Demo/resources/listres.py
+++ b/Mac/Demo/resources/listres.py
@@ -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__':