diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-01-23 17:21:03 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-01-23 16:25:15 +0000 |
commit | c551f43206405019121bd2b2c93714319a0a3300 (patch) | |
tree | 1f48c30631c421fd4bbb3c36da20183c8a2ed7d7 /chromium/tools/flags | |
parent | 7961cea6d1041e3e454dae6a1da660b453efd238 (diff) | |
download | qtwebengine-chromium-c551f43206405019121bd2b2c93714319a0a3300.tar.gz |
BASELINE: Update Chromium to 79.0.3945.139
Change-Id: I336b7182fab9bca80b709682489c07db112eaca5
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/tools/flags')
-rwxr-xr-x | chromium/tools/flags/generate_expired_list.py | 5 | ||||
-rwxr-xr-x | chromium/tools/flags/list_flags.py | 8 |
2 files changed, 8 insertions, 5 deletions
diff --git a/chromium/tools/flags/generate_expired_list.py b/chromium/tools/flags/generate_expired_list.py index da5b65c1638..33d7edccb53 100755 --- a/chromium/tools/flags/generate_expired_list.py +++ b/chromium/tools/flags/generate_expired_list.py @@ -16,6 +16,7 @@ UI. This program can be run with no arguments to run its own unit tests. """ +from __future__ import print_function import list_flags import os @@ -31,7 +32,7 @@ def get_chromium_version(): for line in f.readlines(): key, value = line.strip().split('=') if key == 'MAJOR': - return value + return int(value) return None @@ -113,7 +114,7 @@ def main(): doctest.testmod() if len(sys.argv) < 3: - print '{}: only ran tests'.format(sys.argv[0]) + print('{}: only ran tests'.format(sys.argv[0])) return output = gen_expiry_file(sys.argv[0], sys.argv[1]) diff --git a/chromium/tools/flags/list_flags.py b/chromium/tools/flags/list_flags.py index 700bc24770e..3c712eaa8ec 100755 --- a/chromium/tools/flags/list_flags.py +++ b/chromium/tools/flags/list_flags.py @@ -6,6 +6,8 @@ """Emits a formatted, optionally filtered view of the list of flags. """ +from __future__ import print_function + import argparse import os import re @@ -103,10 +105,10 @@ def print_flags(flags, verbose): """ for f in flags: if verbose: - print '%s,%d,%s,%s' % (f['name'], f['expiry_milestone'], - ' '.join(f['owners']), ' '.join(f['resolved_owners'])) + print('%s,%d,%s,%s' % (f['name'], f['expiry_milestone'], ' '.join( + f['owners']), ' '.join(f['resolved_owners']))) else: - print f['name'] + print(f['name']) def main(): |