summaryrefslogtreecommitdiff
path: root/Mac/Demo/resources/copyres.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mac/Demo/resources/copyres.py')
-rw-r--r--Mac/Demo/resources/copyres.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Mac/Demo/resources/copyres.py b/Mac/Demo/resources/copyres.py
index da55b0648f..6c8a3c03b9 100644
--- a/Mac/Demo/resources/copyres.py
+++ b/Mac/Demo/resources/copyres.py
@@ -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)