Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions file_rename.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,8 @@
# Skip the header lines
if line.startswith('#'):
continue
# Split the two columns, then write to key & value
else:
names = line.strip().split()
file_data[names[0]] = names[1]
names = line.strip().split()
file_data[names[0]] = names[1]
except IOError as ex:
print("File open issue: " + ex.strerror)

Expand Down