Commit 911c78d1 authored by Andrey Golovizin's avatar Andrey Golovizin

Get rid of ur"" strings

parent 7efed613
......@@ -88,7 +88,7 @@ class Writer(BaseWriter):
raise BibTeXError('String has unmatched braces: %s' % s)
def _encode(self, text):
ur"""Encode text as LaTeX.
r"""Encode text as LaTeX.
>>> w = Writer(encoding='ASCII')
>>> print(w._encode(u'1970–1971.'))
......@@ -107,7 +107,7 @@ class Writer(BaseWriter):
return codecs.encode(text, 'ulatex+{}'.format(self.encoding))
def _encode_with_comments(self, text):
ur"""Encode text as LaTeX, preserve comments.
r"""Encode text as LaTeX, preserve comments.
>>> w = Writer(encoding='ASCII')
>>> print(w._encode_with_comments(u'1970–1971. %% † RIP †'))
......
......@@ -31,7 +31,7 @@ from pybtex.style.template import join
class NameStyle(BaseNameStyle):
def format(self, person, abbr=False):
ur"""
r"""
Format names similarly to {vv~}{ll}{, jj}{, f.} in BibTeX.
>>> from pybtex.database import Person
......
......@@ -31,7 +31,7 @@ from pybtex.style.template import join
class NameStyle(BaseNameStyle):
def format(self, person, abbr=False):
ur"""
r"""
Format names similarly to {ff~}{vv~}{ll}{, jj} in BibTeX.
>>> from pybtex.database import Person
......
......@@ -439,7 +439,7 @@ class CrossFileMacrosTest(ParserTest, TestCase):
class AtCharacterTest(ParserTest, TestCase):
input_strings = [
ur""",
r""",
@proceedings{acc,
title = {Proc.\@ of the American Control Conference},
notes = "acc@example.org"
......@@ -459,7 +459,7 @@ class AtCharacterTest(ParserTest, TestCase):
class AtCharacterInUnwantedEntryTest(ParserTest, TestCase):
parser_options = {'wanted_entries': []}
input_strings = [
ur""",
r""",
@proceedings{acc,
title = {Proc.\@ of the American Control Conference},
notes = "acc@example.org"
......@@ -471,7 +471,7 @@ class AtCharacterInUnwantedEntryTest(ParserTest, TestCase):
class CaseSensitivityTest(ParserTest, TestCase):
input_strings = [
ur""",
r""",
@Article{CamelCase,
Title = {To CamelCase or Under score},
year = 2009,
......
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