diff options
author | Eike Ziller <eike.ziller@theqtcompany.com> | 2016-03-11 15:18:34 +0100 |
---|---|---|
committer | Eike Ziller <eike.ziller@theqtcompany.com> | 2016-03-14 13:18:43 +0000 |
commit | e60cffd2e426ff28842d333ff796f53d0f100c3c (patch) | |
tree | ff9728b209bd9ce475e91aa9706cf63448875816 /scripts | |
parent | db61acce80a7373f3b4cfcb84ca3af1e6264c3ac (diff) | |
download | qt-creator-e60cffd2e426ff28842d333ff796f53d0f100c3c.tar.gz |
packageIfw: Fix warnings
Change-Id: I3c8df19e1fb50e5d41413751f502cb5f7331bfc4
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/packageIfw.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/scripts/packageIfw.py b/scripts/packageIfw.py index f594393307..7a38204311 100755 --- a/scripts/packageIfw.py +++ b/scripts/packageIfw.py @@ -40,13 +40,13 @@ def usage(): def substitute_file(infile, outfile, substitutions): with open(infile, 'r') as f: - template = f.read() + template = f.read() with open(outfile, 'w') as f: - f.write(template.format(**substitutions)) + f.write(template.format(**substitutions)) def ifw_template_dir(): script_dir = os.path.dirname(inspect.getfile(inspect.currentframe())) - source_dir = os.path.normpath(os.path.join(script_dir, '..')); + source_dir = os.path.normpath(os.path.join(script_dir, '..')) return os.path.normpath(os.path.join(source_dir, 'dist', 'installer', 'ifw')) def main(): @@ -66,31 +66,31 @@ def main(): archives = [] debug = False for o, a in opts: - if o in ('-h', '--help'): + if o in ['-h', '--help']: usage() sys.exit(0) - if o in ('-v', '--version-string'): + if o in ['-v', '--version-string']: version = a if o in ['-d', '--display-version']: display_version = a - if o in ('-i', '--installer-path'): + if o in ['-i', '--installer-path']: ifw_location = a - if o in ('-a', '--archive'): + if o in ['-a', '--archive']: archives.append(a) if o in ['--debug']: debug = True if (version == ''): - raise Exception('Version not specified (--version-string)!') + raise Exception('Version not specified (--version-string)!') if not display_version: display_version = version if (ifw_location == ''): - raise Exception('Installer framework location not specified (--installer-path)!') + raise Exception('Installer framework location not specified (--installer-path)!') if not archives: - raise ValueError('No archive(s) specified (--archive)!') + raise ValueError('No archive(s) specified (--archive)!') installer_name = args[0] config_postfix = '' |