-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fixing instances of string appending with + #39
base: master
Are you sure you want to change the base?
Conversation
@ErwinJunge Can you help me review this PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You seem to be missing a lot of the cases where strings are concatenated by +. The goal is to fix all of the cases.
@@ -76,7 +76,7 @@ def rename_if_exists(self, folder, file): | |||
full_path = folder + name + '.' + str(i) + extension | |||
if not os.path.exists(full_path): | |||
break | |||
return name + '.' + str(i) + extension | |||
return "{0}.{1}{2}".format(name, str(i), extension) |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
@@ -106,7 +106,7 @@ def handle_form(self, form, files): | |||
and not re.match(r'[\w\d_ -]+', name).group(0) == name | |||
) | |||
if invalid_folder_name: | |||
messages.append("Invalid folder name : " + name) | |||
messages.append('{0}{1}'.format("Invalid folder name : ", name)) |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
@discentem I think you're probably better off picking something else to work on. PR #48 is pretty close to completion and is doing the same thing. |
as per #35