Commit 1fee83f2 authored by Andrey Golovizin's avatar Andrey Golovizin

Get rid of ur'' strings in pybtex_doctools

parent 6551c886
......@@ -97,7 +97,7 @@ class BibTeXLexer(ExtendedRegexLexer):
filenames = ['*.bib']
flags = re.IGNORECASE
IDENTIFIER = ur'[{0}][{1}]*'.format(re.escape(NAME_CHARS), re.escape(NAME_CHARS + digits))
IDENTIFIER = r'[{0}][{1}]*'.format(re.escape(NAME_CHARS), re.escape(NAME_CHARS + digits))
def open_brace_callback(self, match, ctx):
opening_brace = match.group()
......@@ -204,7 +204,7 @@ class BSTLexer(RegexLexer):
(r'[^#\"\{\}\s]+\$', Name.Builtin),
(r'[^#\"\{\}\s]+', Name.Variable),
(r'"[^\"]*"', String),
(ur'#-?\d+', Number),
(r'#-?\d+', Number),
('{', Text.Punctuation, ('group-end', 'body')),
default('#pop'),
],
......
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