Skip to content

Commit

Permalink
fix whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
jpduckwo committed Aug 16, 2016
1 parent c45b81f commit ee360b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dynamodump.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def change_prefix(source_table_name, source_wildcard, destination_wildcard, sepa
source_prefix = source_wildcard.split("*", 1)[0]
destination_prefix = destination_wildcard.split("*", 1)[0]
if separator == '':
if re.sub( r"([A-Z])", r" \1", source_table_name).split()[0] == source_prefix:
if re.sub(r"([A-Z])", r" \1", source_table_name).split()[0] == source_prefix:
return destination_prefix + re.sub(r"([A-Z])", r" \1", source_table_name).split(' ', 1)[1].replace(" ", "")
if source_table_name.split(separator, 1)[0] == source_prefix:
return destination_prefix + separator + source_table_name.split(separator, 1)[1]
Expand Down

0 comments on commit ee360b6

Please sign in to comment.