Fix print function called without parenthesis

This commit is contained in:
Romain Failliot 2021-11-21 12:53:49 -05:00
parent e306b25cb9
commit 4fa86dc9a6
1 changed files with 4 additions and 4 deletions

View File

@ -37,7 +37,7 @@ def mkdir(s):
# copies a file to 'dest' # copies a file to 'dest'
def copyFile(src, dest, use_text_mode=False,enc=None): def copyFile(src, dest, use_text_mode=False,enc=None):
print 'copying "%s" to "%s"' % (src, dest) print('copying "%s" to "%s"' % (src, dest))
if use_text_mode: if use_text_mode:
r, w = 'r', 'w' r, w = 'r', 'w'
else: else:
@ -53,7 +53,7 @@ def copyFile(src, dest, use_text_mode=False,enc=None):
# recursively copies a directory to 'dest' # recursively copies a directory to 'dest'
def copyDir(src, dest): def copyDir(src, dest):
print 'copying "%s" to "%s"' % (src, dest) print('copying "%s" to "%s"' % (src, dest))
mkdir(dest) mkdir(dest)
for f in os.listdir(src): for f in os.listdir(src):
s = os.path.join(src, f) s = os.path.join(src, f)
@ -128,7 +128,7 @@ locale_dir = os.path.join(gtk_dir, 'share\\locale')
for s in glob.glob('..\\po\\*.po'): for s in glob.glob('..\\po\\*.po'):
lang = s[16:-3] lang = s[16:-3]
# Diffuse localisations # Diffuse localisations
print 'Compiling %s translation' % (lang, ) print('Compiling %s translation' % (lang, ))
d = 'dist' d = 'dist'
for p in [ 'locale', lang, 'LC_MESSAGES' ]: for p in [ 'locale', lang, 'LC_MESSAGES' ]:
d = os.path.join(d, p) d = os.path.join(d, p)
@ -236,4 +236,4 @@ if os.system('iscc diffuse.iss /F%s' % (INSTALLER, )) != 0:
# Declare success. # Declare success.
# #
print 'Successfully created "%s".' % (INSTALLER, ) print('Successfully created "%s".' % (INSTALLER, ))