Skip to content
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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

fixing instances of string appending with + #39

wants to merge 3 commits into from

Conversation

discentem
Copy link

as per #35

@rohithasrk
Copy link
Contributor

@ErwinJunge Can you help me review this PR?

Copy link
Contributor

@ErwinJunge ErwinJunge left a 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.

@@ -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.

@ErwinJunge
Copy link
Contributor

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants