Fixed a test: file() doesn't work in Python 3, used open() instead.

This commit is contained in:
Brent O'Connor 2016-02-15 09:31:59 -06:00
parent 6e54f1635d
commit 32144dd779

View file

@ -83,7 +83,7 @@ class Command(BaseCommand):
if not os.path.isfile(file_path):
print("File %s not found." % file_path)
continue
f = file(file_path, 'r')
f = open(file_path, 'r')
data = f.readlines()
f.close()