Skip to content

Commit a655822

Browse files
committed
Remove use of argparse.FileType
Will soon be deprecated because of python/cpython#58032
1 parent 207ddc4 commit a655822

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎itou/gps/management/commands/import_advisor_information.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import argparse
21
import uuid
32
from itertools import batched
43
from math import ceil
@@ -34,7 +33,7 @@ class Command(BaseCommand):
3433
def add_arguments(self, parser):
3534
parser.add_argument(
3635
"import_excel_file",
37-
type=argparse.FileType(mode="rb"),
36+
type=str,
3837
help="The filepath of the GPS export file, with extension .xlsx",
3938
)
4039
parser.add_argument(

0 commit comments

Comments
 (0)