Skip to content

Commit

Permalink
Fixed a test: file() doesn't work in Python 3, used open() instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
epicserve committed Feb 15, 2016
1 parent 6e54f16 commit 32144dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion categories/management/commands/import_categories.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def handle(self, *file_paths, **options):
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()

Expand Down

0 comments on commit 32144dd

Please sign in to comment.