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 532771 b392953074b0ff89616a630c71245d2816f55d43
parent 532770 e7a45a6189d2de0ba53900ca9e480ba0fc3c1d8b
child 532772 b41a2b5161801565b04b3bb41a1a1e77154b49e2
push id11272
push userapavel@mozilla.com
push dateThu, 16 May 2019 15:28:22 +0000
treeherdermozilla-beta@2265bfc5920d [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)