mirror of
https://github.com/jazzband/django-categories.git
synced 2026-03-16 22:30:24 +00:00
Fixed a test: file() doesn't work in Python 3, used open() instead.
This commit is contained in:
parent
6e54f1635d
commit
32144dd779
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue