Commit 6e5066f6 authored by Michal Čihař's avatar Michal Čihař

Simplify concatenation

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent afefbc54
...@@ -43,6 +43,6 @@ class SameBookendingWhitespace(AutoFix): ...@@ -43,6 +43,6 @@ class SameBookendingWhitespace(AutoFix):
# add the whitespace around the target translation (ignore blanks) # add the whitespace around the target translation (ignore blanks)
stripped = target.strip() stripped = target.strip()
if stripped: if stripped:
newtarget = '%s%s%s' % (head, stripped, tail) newtarget = u''.join((head, stripped, tail))
return newtarget, newtarget != target return newtarget, newtarget != target
return target, False return target, False
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment