Merge pull request #2909 from cclauss/patch-2

ur'string' not needed in Py 2, syntax error in Py3
This commit is contained in:
Mikhail Korobov 2017-09-01 15:42:02 +05:00 committed by GitHub
commit 6213fa5175
2 changed files with 2 additions and 2 deletions

View File

@ -191,7 +191,7 @@ htmlhelp_basename = 'Scrapydoc'
# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title, author, document class [howto/manual]).
latex_documents = [
('index', 'Scrapy.tex', ur'Scrapy Documentation',
('index', 'Scrapy.tex', u'Scrapy Documentation',
ur'Scrapy developers', 'manual'),
]

View File

@ -20,7 +20,7 @@ _filename = None
_contents = None
# A regex that matches standard linkcheck output lines
line_re = re.compile(ur'(.*)\:\d+\:\s\[(.*)\]\s(?:(.*)\sto\s(.*)|(.*))')
line_re = re.compile(u'(.*)\:\d+\:\s\[(.*)\]\s(?:(.*)\sto\s(.*)|(.*))')
# Read lines from the linkcheck output file
try: