Bug 1551551 - Fix tooltool.py use of print in its dump function. r=ahal
authorMark Banner <standard8@mozilla.com>
Wed, 15 May 2019 14:34:53 +0000
changeset 473954 b392953074b0ff89616a630c71245d2816f55d43
parent 473953 e7a45a6189d2de0ba53900ca9e480ba0fc3c1d8b
child 473955 b41a2b5161801565b04b3bb41a1a1e77154b49e2
push id113119
push userdvarga@mozilla.com
push dateWed, 15 May 2019 21:35:00 +0000
treeherdermozilla-inbound@0e8d68920793 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersahal
bugs1551551
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1551551 - Fix tooltool.py use of print in its dump function. r=ahal Depends on D31075 Differential Revision: https://phabricator.services.mozilla.com/D31076
python/mozbuild/mozbuild/action/tooltool.py
--- a/python/mozbuild/mozbuild/action/tooltool.py
+++ b/python/mozbuild/mozbuild/action/tooltool.py
@@ -526,17 +526,17 @@ class Manifest(object):
                 raise InvalidManifest("trying to read invalid manifest file")
 
     def dump(self, output_file, fmt='json'):
         assert fmt in self.valid_formats
         if fmt == 'json':
             rv = json.dump(
                 self.file_records, output_file, indent=2, cls=FileRecordJSONEncoder,
                 separators=(',', ': '))
-            print >> output_file, ''
+            print('', file=output_file)
             return rv
 
     def dumps(self, fmt='json'):
         assert fmt in self.valid_formats
         if fmt == 'json':
             return json.dumps(self.file_records, cls=FileRecordJSONEncoder)