python/mozbuild: Remove use of file() and universal newline mode.

This commit is contained in:
Vincent Povirk 2019-08-14 10:36:54 -05:00 committed by Jacek Caban
parent 36a47ef1e4
commit 19b3b3ca90

View File

@ -150,7 +150,7 @@ class VirtualenvManager(object):
return self.virtualenv_root
def packages(self):
with file(self.manifest_path, 'rU') as fh:
with open(self.manifest_path, 'r') as fh:
packages = [line.rstrip().split(':')
for line in fh]
return packages