fix print method

pull/135/head
Simon Stürz 2017-03-06 20:57:28 +01:00 committed by Michael Zanetti
parent b9053a31ae
commit 308aef672b
1 changed files with 4 additions and 6 deletions

View File

@ -42,14 +42,12 @@ def printInfo(info):
#-----------------------------------------------------------------------------------------------------------------
def printWarning(warning):
if args.filetype is 'i':
print("Warning:" + warning)
print("Warning:" + warning)
#-----------------------------------------------------------------------------------------------------------------
def printError(error):
if args.filetype is 'i':
print('Error:' + error)
print('Error:' + error)
#-----------------------------------------------------------------------------------------------------------------
@ -346,7 +344,7 @@ def writePluginInfoFile():
#-----------------------------------------------------------------------------------------------------------------
def writeExternPluginInfoFile():
printInfo(' --> generate extern-plugininfo.h for plugin \"%s\" = %s' % (pluginMap['name'], pluginMap['id']))
print(' --> generate extern-plugininfo.h for plugin \"%s\" = %s' % (pluginMap['name'], pluginMap['id']))
extractPlugin(pluginMap)
writeToFile('/* This file is generated by the guh build system. Any changes to this file will')
writeToFile(' * be lost.')
@ -374,7 +372,7 @@ def writeExternPluginInfoFile():
writeToFile('')
writeToFile('#endif // EXTERNPLUGININFO_H')
outputFile.close()
printInfo(' --> generated successfully \'%s\'' % (args.output))
print(' --> generated successfully \'%s\'' % (args.output))
##################################################################################################################