From 42d22fc4afe32be2499804bcf0ee20f3b98c2d76 Mon Sep 17 00:00:00 2001 From: Kcchouette Date: Sat, 14 Jan 2017 12:33:36 +0100 Subject: [PATCH] Fix the english comment I've add --- crunchy-xml-decoder/ultimate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crunchy-xml-decoder/ultimate.py b/crunchy-xml-decoder/ultimate.py index 8f019ef..afdc23d 100644 --- a/crunchy-xml-decoder/ultimate.py +++ b/crunchy-xml-decoder/ultimate.py @@ -230,7 +230,7 @@ def ultimate(page_url, seasonnum, epnum): # title = h.unescape(unidecode(title)).replace('/', ' - ').replace(':', '-'). # replace('?', '.').replace('"', "''").replace('|', '-').replace('"',"''").strip() - ### Taken from http://stackoverflow.com/questions/6116978/python-replace-multiple-strings and imrpoved to include the backslash### + ### Taken from http://stackoverflow.com/questions/6116978/python-replace-multiple-strings and improved to include the backslash### rep = {' / ': ' - ', '/': ' - ', ':': '-', '?': '.', '"': "''", '|': '-', '"': "''", 'a*G':'a G', '*': '#', u'\u2026': '...', ' \ ': ' - '} rep = dict((re.escape(k), v) for k, v in rep.iteritems())