Justify lack of encoding when reading record file
@@ -855,6 +855,9 @@ class InstallRequirement(object):
else:
return change_root(root, path)
+ # We intentionally do not use any encoding to read the file because
+ # setuptools writes the file using distutils.file_util.write_file,
+ # which does not specify an encoding.
with open(record_filename) as f:
for line in f:
directory = os.path.dirname(line)
