Fix print statements

This commit is contained in:
swprojects
2018-01-25 16:23:22 +00:00
parent 618a384a7a
commit 2d58f219ca
2 changed files with 8 additions and 8 deletions

View File

@@ -19,7 +19,7 @@ import wx
def _displayHook(obj):
if obj is not None:
print repr(obj)
print (repr(obj))
# add translation macro to builtin similar to what gettext does
import __builtin__

View File

@@ -48,18 +48,18 @@ tCmd = pyExe + ' ' + pyGettext + ' ' + (gtOptions % (appC.langDomain,
appC.langDomain,
outFolder,
appFolder))
print "Generating the .pot file"
print "cmd: %s" % tCmd
print ("Generating the .pot file")
print ("cmd: %s" % tCmd)
rCode = subprocess.call(tCmd)
print "return code: %s\n\n" % rCode
print ("return code: %s\n\n" % rCode)
for tLang in supportedLang:
# build command for msgfmt
langDir = os.path.join(appFolder, ('locale\%s\LC_MESSAGES' % tLang))
poFile = os.path.join(langDir, appC.langDomain + '.po')
tCmd = pyExe + ' ' + pyMsgfmt + ' ' + poFile
print "Generating the .mo file"
print "cmd: %s" % tCmd
print ("Generating the .mo file")
print ("cmd: %s" % tCmd)
rCode = subprocess.call(tCmd)
print "return code: %s\n\n" % rCode
print ("return code: %s\n\n" % rCode)