From 32144dd77941a9bf892beefc04e89f403c218354 Mon Sep 17 00:00:00 2001 From: Brent O'Connor Date: Mon, 15 Feb 2016 09:31:59 -0600 Subject: [PATCH] Fixed a test: file() doesn't work in Python 3, used open() instead. --- categories/management/commands/import_categories.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/categories/management/commands/import_categories.py b/categories/management/commands/import_categories.py index 5599d53..fe75b23 100644 --- a/categories/management/commands/import_categories.py +++ b/categories/management/commands/import_categories.py @@ -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()