python3: open django.core.files.storage in text mode for csv (#40911)
This commit is contained in:
parent
c20eb03a11
commit
a964e71e45
|
@ -52,7 +52,7 @@ class SynchronizeFederationsImport(object):
|
|||
self.delete_count = 0
|
||||
self.unknown_count = 0
|
||||
max_federation = 0
|
||||
for i, line in enumerate(default_storage.open(self.action.csv_filepath)):
|
||||
for i, line in enumerate(default_storage.open(self.action.csv_filepath, 'r')):
|
||||
line = line.strip()
|
||||
self.federations.append(line)
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue