summaryrefslogtreecommitdiffstats
path: root/Doc/faq
diff options
context:
space:
mode:
authorJim DeLaHunt <from.github@jdlh.com>2017-02-13 13:57:13 (GMT)
committerBrian Curtin <brian@python.org>2017-02-13 13:57:13 (GMT)
commit3d707be950b387552585451071928e7b39cdfa53 (patch)
tree2a2ecd823e663537c07067c35f600029cc16bd7e /Doc/faq
parent649a7caf6b26b3bf62485951c44bd1606a5f65f9 (diff)
downloadcpython-3d707be950b387552585451071928e7b39cdfa53.zip
cpython-3d707be950b387552585451071928e7b39cdfa53.tar.gz
cpython-3d707be950b387552585451071928e7b39cdfa53.tar.bz2
bpo-29521 Fix two minor documentation build warnings (#41)
Much of bpo-29521 was fixed in parallel with commit e7ffb99 . This cleans up the rest. Apply parallel change to Doc/make.bat to read "set SPHINXOPTS=-D latex_elements.papersize=" I don't have a Windows system on which to observe the warning, but it should be necessary. The warning: .../workspace/cpython_github/Doc/faq/windows.rst:303: WARNING: unknown option: -t In the Windows FAQ, `How do I keep editors from inserting tabs into my Python source?`, contained a reference to a Python -t option. In Python 2.x, this caused Python to issue warnings about lines with mixed spaces and tabs, but as of Python 3.6 it does nothing. Per discussion at http://bugs.python.org/issue29387, take their wording. Python [3] raises an IndentationError or TabError. Tabnanny is now a module.
Diffstat (limited to 'Doc/faq')
-rw-r--r--Doc/faq/windows.rst7
1 files changed, 4 insertions, 3 deletions
diff --git a/Doc/faq/windows.rst b/Doc/faq/windows.rst
index d725343..b9b7b8d 100644
--- a/Doc/faq/windows.rst
+++ b/Doc/faq/windows.rst
@@ -300,9 +300,10 @@ this respect, and is easily configured to use spaces: Take :menuselection:`Tools
--> Options --> Tabs`, and for file type "Default" set "Tab size" and "Indent
size" to 4, and select the "Insert spaces" radio button.
-If you suspect mixed tabs and spaces are causing problems in leading whitespace,
-run Python with the :option:`-t` switch or run ``Tools/Scripts/tabnanny.py`` to
-check a directory tree in batch mode.
+Python raises :exc:`IndentationError` or :exc:`TabError` if mixed tabs
+and spaces are causing problems in leading whitespace.
+You may also run the :mod:`tabnanny` module to check a directory tree
+in batch mode.
How do I check for a keypress without blocking?