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()