mirror of
https://github.com/evennia/evennia.git
synced 2026-03-27 18:26:32 +01:00
Move to python3 style next.
This commit is contained in:
parent
b7577f13cd
commit
402cbed8fa
1 changed files with 1 additions and 4 deletions
|
|
@ -1372,10 +1372,7 @@ def from_csv(fp, field_names = None, **kwargs):
|
|||
if field_names:
|
||||
table.field_names = field_names
|
||||
else:
|
||||
if py3k:
|
||||
table.field_names = [x.strip() for x in next(reader)]
|
||||
else:
|
||||
table.field_names = [x.strip() for x in reader.next()]
|
||||
table.field_names = [x.strip() for x in next(reader)]
|
||||
|
||||
for row in reader:
|
||||
table.add_row([x.strip() for x in row])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue