Skip to content

Commit bd8a848

Browse files
committed
Revert open().
1 parent 2ac352f commit bd8a848

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/sitetree/management/commands/sitetreeload.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import sys
22
import traceback
33
from collections import defaultdict
4-
from pathlib import Path
54

65
from django.core import serializers
76
from django.core.exceptions import ObjectDoesNotExist
@@ -74,7 +73,7 @@ def handle(self, *fixture_files, **options):
7473

7574
self.stdout.write(f'Loading fixture from `{fixture_file}` ...\n')
7675

77-
fixture = Path.open(fixture_file)
76+
fixture = open(fixture_file) # noqa: PTH123
7877

7978
try:
8079
objects = serializers.deserialize('json', fixture, using=using)

0 commit comments

Comments
 (0)