Skip to content

Commit 85ddf03

Browse files
committed
merge with stable
2 parents db0f7cc + cae4910 commit 85ddf03

File tree

8 files changed

+27
-17
lines changed

8 files changed

+27
-17
lines changed

doc/extdev/appapi.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ package.
218218
use ``docutils.nodes.generated`` if you want no further text decoration. If
219219
the text should be treated as literal (e.g. no smart quote replacement), but
220220
not have typewriter styling, use ``sphinx.addnodes.literal_emphasis`` or
221-
``sphinx.addnodes.literal_strong``.
221+
``sphinx.addnodes.literal_strong``.
222222

223223
For the role content, you have the same syntactical possibilities as for
224224
standard Sphinx roles (see :ref:`xref-syntax`).

doc/extdev/markupapi.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ using :meth:`.Sphinx.add_directive` or :meth:`.Sphinx.add_directive_to_domain`.
5555
.. attribute:: arguments
5656

5757
The arguments given to the directive, as a list.
58-
58+
5959
.. attribute:: options
6060

6161
The options given to the directive, as a dictionary mapping option names
@@ -82,7 +82,7 @@ using :meth:`.Sphinx.add_directive` or :meth:`.Sphinx.add_directive_to_domain`.
8282

8383
Internal offset of the directive content. Used when calling
8484
``nested_parse`` (see below).
85-
85+
8686
.. attribute:: block_text
8787

8888
The string containing the entire directive.

doc/intl.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,5 +294,5 @@ There is `sphinx translation page`_ for Sphinx-1.2 documentation.
294294
.. _`transifex-client`: https://pypi.python.org/pypi/transifex-client
295295
.. _`sphinx-intl`: https://pypi.python.org/pypi/sphinx-intl
296296
.. _Transifex: https://www.transifex.com/
297-
.. _`sphinx translation page`: https://www.transifex.com/projects/p/sphinx-doc-1_2_0/
297+
.. _`sphinx translation page`: https://www.transifex.com/projects/p/sphinx-doc-1_2_0/
298298
.. _`Transifex Client v0.8 — Transifex documentation`: http://help.transifex.com/features/client/index.html

sphinx/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- coding: utf-8 -*-
22
"""
3-
Sphinx
4-
~~~~~~
3+
sphinx.__main__
4+
~~~~~~~~~~~~~~~
55
66
The Sphinx documentation toolchain.
77

sphinx/builders/gettext.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ def __init__(self):
5656

5757
def add(self, msg, origin):
5858
if not hasattr(origin, 'uid'):
59-
# Nodes that are replicated like todo don't have a uid, however i18n is also unnecessary.
59+
# Nodes that are replicated like todo don't have a uid,
60+
# however i18n is also unnecessary.
6061
return
6162
if msg not in self.metadata: # faster lookup in hash
6263
self.messages.append(msg)

sphinx/make_mode.py

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@
5050
("", "xml", "to make Docutils-native XML files"),
5151
("", "pseudoxml", "to make pseudoxml-XML files for display purposes"),
5252
("", "linkcheck", "to check all external links for integrity"),
53-
("", "doctest", "to run all doctests embedded in the documentation (if enabled)"),
53+
("", "doctest", "to run all doctests embedded in the documentation "
54+
"(if enabled)"),
5455
("", "coverage", "to run coverage check of the documentation (if enabled)"),
5556
]
5657

@@ -92,13 +93,15 @@ def build_dirhtml(self):
9293
if self.run_generic_build('dirhtml') > 0:
9394
return 1
9495
print()
95-
print('Build finished. The HTML pages are in %s.' % self.builddir_join('dirhtml'))
96+
print('Build finished. The HTML pages are in %s.' %
97+
self.builddir_join('dirhtml'))
9698

9799
def build_singlehtml(self):
98100
if self.run_generic_build('singlehtml') > 0:
99101
return 1
100102
print()
101-
print('Build finished. The HTML page is in %s.' % self.builddir_join('singlehtml'))
103+
print('Build finished. The HTML page is in %s.' %
104+
self.builddir_join('singlehtml'))
102105

103106
def build_pickle(self):
104107
if self.run_generic_build('pickle') > 0:
@@ -127,7 +130,8 @@ def build_qthelp(self):
127130
'.qhcp project file in %s, like this:' % self.builddir_join('qthelp'))
128131
print('$ qcollectiongenerator %s.qhcp' % self.builddir_join('qthelp', proj_name))
129132
print('To view the help file:')
130-
print('$ assistant -collectionFile %s.qhc' % self.builddir_join('qthelp', proj_name))
133+
print('$ assistant -collectionFile %s.qhc' %
134+
self.builddir_join('qthelp', proj_name))
131135

132136
def build_devhelp(self):
133137
if self.run_generic_build('devhelp') > 0:
@@ -173,7 +177,8 @@ def build_text(self):
173177
def build_texinfo(self):
174178
if self.run_generic_build('texinfo') > 0:
175179
return 1
176-
print("Build finished; the Texinfo files are in %s." % self.builddir_join('texinfo'))
180+
print("Build finished; the Texinfo files are in %s." %
181+
self.builddir_join('texinfo'))
177182
if os.name == 'posix':
178183
print("Run `make' in that directory to run these through makeinfo")
179184
print("(use `make info' here to do that automatically).")
@@ -188,13 +193,15 @@ def build_gettext(self):
188193
if self.run_generic_build('gettext', doctreedir=dtdir) > 0:
189194
return 1
190195
print()
191-
print('Build finished. The message catalogs are in %s.' % self.builddir_join('gettext'))
196+
print('Build finished. The message catalogs are in %s.' %
197+
self.builddir_join('gettext'))
192198

193199
def build_changes(self):
194200
if self.run_generic_build('changes') > 0:
195201
return 1
196202
print()
197-
print('Build finished. The overview file is in %s.' % self.builddir_join('changes'))
203+
print('Build finished. The overview file is in %s.' %
204+
self.builddir_join('changes'))
198205

199206
def build_linkcheck(self):
200207
res = self.run_generic_build('linkcheck')
@@ -227,7 +234,8 @@ def build_pseudoxml(self):
227234
if self.run_generic_build('pseudoxml') > 0:
228235
return 1
229236
print()
230-
print('Build finished. The pseudo-XML files are in %s.' % self.builddir_join('pseudoxml'))
237+
print('Build finished. The pseudo-XML files are in %s.' %
238+
self.builddir_join('pseudoxml'))
231239

232240
def run_generic_build(self, builder, doctreedir=None):
233241
# compatibility with old Makefile

sphinx/util/nodes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ def extract_messages(doctree):
5858
# this issue was filed to Docutils tracker:
5959
# sf.net/tracker/?func=detail&aid=3599485&group_id=38414&atid=422032
6060
# sourceforge.net/p/docutils/patches/108/
61-
if isinstance(node, (nodes.caption, nodes.title, nodes.rubric)) and not node.source:
61+
if isinstance(node, (nodes.caption, nodes.title, nodes.rubric)) \
62+
and not node.source:
6263
node.source = find_source_node(node)
6364
node.line = 0 #need fix docutils to get `node.line`
6465

utils/check_sources.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def check_syntax(fn, lines):
6363
def check_style_and_encoding(fn, lines):
6464
encoding = 'ascii'
6565
for lno, line in enumerate(lines):
66-
if len(line) > 81:
66+
if len(line) > 90:
6767
yield lno+1, "line too long"
6868
if lno < 2:
6969
co = coding_re.search(line)

0 commit comments

Comments
 (0)