Commits

Anonymous committed 8ce90ed

Fix line length

Comments (0)

Files changed (2)

sphinx/builders/intl.py

                 pofile.write(POHEADER % data)
                 for message in messages:
                     # message contains *one* line of text ready for translation
-                    message = message.replace(u'\\', ur'\\').replace(u'"', ur'\"')
+                    message = message.replace(u'\\', ur'\\'). \
+                                      replace(u'"', ur'\"')
                     pomsg = u'msgid "%s"\nmsgstr ""\n\n' % message
                     pofile.write(pomsg.encode('utf-8'))
             finally:

tests/test_build_gettext.py

             if p.returncode != 0:
                 print stdout
                 print stderr
-                assert False, 'msginit exited with return code %s' % p.returncode
+                assert False, 'msginit exited with return code %s' % \
+                        p.returncode
         assert (app.outdir / 'en_US.po').isfile(), 'msginit failed'
         try:
             p = Popen(['msgfmt', 'en_US.po', '-o',
             if p.returncode != 0:
                 print stdout
                 print stderr
-                assert False, 'msgfmt exited with return code %s' % p.returncode
-        assert (app.outdir / 'en' / 'LC_MESSAGES' / 'test_root.mo').isfile(), 'msgfmt failed'
+                assert False, 'msgfmt exited with return code %s' % \
+                        p.returncode
+        assert (app.outdir / 'en' / 'LC_MESSAGES' / 'test_root.mo').isfile(), \
+                'msgfmt failed'
     finally:
         os.chdir(cwd)
 
             print stdout
             print stderr
             assert False, 'msgfmt exited with return code %s' % p.returncode
-    assert (test_root / 'xx' / 'LC_MESSAGES' / 'bom.mo').isfile(), 'msgfmt failed'
+    assert (test_root / 'xx' / 'LC_MESSAGES' / 'bom.mo').isfile(), \
+            'msgfmt failed'
 def teardown_patch():
     (test_root / 'xx').rmtree()
 test_patch.setup = setup_patch