improve coding style

This commit is contained in:
Remita Amine 2017-04-12 20:38:43 +01:00
parent e4d74e2778
commit 40fcba5edb
10 changed files with 12 additions and 12 deletions

View file

@ -26,7 +26,7 @@ class MetadataFromTitlePP(PostProcessor):
regex += r'(?P<' + match.group(1) + '>.+)'
lastpos = match.end()
if lastpos < len(fmt):
regex += re.escape(fmt[lastpos:len(fmt)])
regex += re.escape(fmt[lastpos:])
return regex
def run(self, info):