From: benselme Date: Fri, 9 Jan 2015 13:51:54 +0000 (-0500) Subject: PEP8 X-Git-Tag: dev-2a51c9b95d06~51^2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=022b8fd62a5b2e85b3aa254ceee0b5bea15ac1eb;p=thirdparty%2Fbabel.git PEP8 --- diff --git a/tests/test_plural.py b/tests/test_plural.py index 166e2276..122d64d7 100644 --- a/tests/test_plural.py +++ b/tests/test_plural.py @@ -81,8 +81,8 @@ def test_plural_within_rules(): assert repr(p) == "" assert plural.to_javascript(p) == ( "(function(n) { " - "return ((n == 2) || (n == 4) || (n >= 7 && n <= 9))" - " ? 'few' : (n == 1) ? 'one' : 'other'; })") + "return ((n == 2) || (n == 4) || (n >= 7 && n <= 9))" + " ? 'few' : (n == 1) ? 'one' : 'other'; })") assert plural.to_gettext(p) == ( 'nplurals=3; plural=(((n == 2) || (n == 4) || (n >= 7 && n <= 9))' ' ? 1 : (n == 1) ? 0 : 2)') @@ -193,13 +193,11 @@ class PluralRuleParserTestCase(unittest.TestCase): ('and', (self.n_eq(1), self.n_eq(2))) def test_or_and(self): - assert plural._Parser('n = 0 or n != 1 and n % 100 = 1..19' ).ast ==\ + assert plural._Parser('n = 0 or n != 1 and n % 100 = 1..19').ast == \ ('or', (self.n_eq(0), ('and', (plural.negate(self.n_eq(1)), ('relation', ('in', ('mod', (self.n, plural.value_node(100))), - (make_range_list((1, 19)))))) - ) - ) - ) \ No newline at end of file + (make_range_list((1, 19))))))) + ))