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

Get rid of ur"" strings

parent 7efed613
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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 †'))
+1 −1
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -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
+3 −3
Original line number Diff line number Diff line
@@ -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,