Commits

Georg Brandl committed bf94096

Make check happy.

Comments (0)

Files changed (5)

sphinx/__init__.py

                         'first.')
             else:
                 whichmod += ' module'
-            print >>sys.stderr, \
-                  'Error: The %s cannot be found. Did you install Sphinx '\
-                  'and its dependencies correctly?' % whichmod
+            print >>sys.stderr, ('Error: The %s cannot be found. '
+                                 'Did you install Sphinx and its dependencies '
+                                 'correctly?' % whichmod)
             if hint:
                 print >> sys.stderr, hint
             return 1

sphinx/builders/qthelp.py

         staticdir = path.join(outdir, '_static')
         imagesdir = path.join(outdir, '_images')
         for root, dirs, files in os.walk(outdir):
-            resourcedir = root.startswith(staticdir) or root.startswith(imagesdir)
+            resourcedir = root.startswith(staticdir) or \
+                          root.startswith(imagesdir)
             for fn in files:
                 if (resourcedir and not fn.endswith('.js')) or \
                        fn.endswith('.html'):

sphinx/ext/pngmath.py

     app.add_config_value('pngmath_dvipng', 'dvipng', 'html')
     app.add_config_value('pngmath_latex', 'latex', 'html')
     app.add_config_value('pngmath_use_preview', False, 'html')
-    app.add_config_value('pngmath_dvipng_args', ['-gamma 1.5', '-D 110'], 'html')
+    app.add_config_value('pngmath_dvipng_args',
+                         ['-gamma 1.5', '-D 110'], 'html')
     app.add_config_value('pngmath_latex_args', [], 'html')
     app.add_config_value('pngmath_latex_preamble', '', 'html')
     app.connect('build-finished', cleanup_tempdir)

sphinx/util/pycompat.py

     # begin code copied from utf_8_sig.py in Python 2.6
 
     def encode(input, errors='strict'):
-        return (codecs.BOM_UTF8 + codecs.utf_8_encode(input, errors)[0], len(input))
+        return (codecs.BOM_UTF8 +
+                codecs.utf_8_encode(input, errors)[0], len(input))
 
     def decode(input, errors='strict'):
         prefix = 0

sphinx/writers/latex.py

         if self.table.longtable:
             self.body.append('\\hline\n')
             self.body.append('\\endfirsthead\n\n')
-            self.body.append('\multicolumn{%s}{c}%%\n' % self.table.colcount)
-            self.body.append('{{\\bfseries \\tablename\\ \\thetable{} -- %s}} \\\\\n' % _('continued from previous page'))
-            self.body.append('\\hline\n')
+            self.body.append('\\multicolumn{%s}{c}%%\n' % self.table.colcount)
+            self.body.append(r'{{\bfseries \tablename\ \thetable{} -- %s}} \\'
+                             % _('continued from previous page'))
+            self.body.append('\n\\hline\n')
             self.body.append('\\endhead\n\n')
-            self.body.append('\\hline \multicolumn{%s}{|r|}{{%s}} \\\\ \\hline\n' % (
-                self.table.colcount, _('Continued on next page')))
-            self.body.append('\\endfoot\n\n')
+            self.body.append(r'\hline \multicolumn{%s}{|r|}{{%s}} \\ \hline'
+                             % (self.table.colcount,
+                                _('Continued on next page')))
+            self.body.append('\n\\endfoot\n\n')
             self.body.append('\\hline\n')
             self.body.append('\\endlastfoot\n\n')
         else:
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.