Skip to content

Commit

Permalink
Same rstrip in line below
Browse files Browse the repository at this point in the history
Without it, it prints the new class and a new line.
  • Loading branch information
laxos96 authored Jun 11, 2018
1 parent 6ef4482 commit 605581f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extra/remove_space.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def rename_class(current_class_name, new_class_name):
with open('class_list.txt') as f:
for line in f:
current_class_name = line.rstrip("\n")
new_class_name = line.replace(' ', args.delimiter)
new_class_name = line.replace(' ', args.delimiter).rstrip("\n)
if line == new_class_name:
continue
y_n_message = ("Are you sure you want "
Expand Down

0 comments on commit 605581f

Please sign in to comment.