From 4d962a12f71af2fe60a61b275b281dbf819b00c1 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Mon, 13 Aug 2007 19:58:15 +0000 Subject: [PATCH] More small fixes. --- Doc-26/library/parser.rst | 12 ++++++------ Doc-26/library/pprint.rst | 2 +- Doc-26/library/termios.rst | 2 +- Doc-26/library/zipimport.rst | 2 +- Doc-26/reference/lexical_analysis.rst | 9 +-------- Doc-3k/library/parser.rst | 12 ++++++------ Doc-3k/library/pprint.rst | 2 +- Doc-3k/library/termios.rst | 2 +- Doc-3k/library/zipimport.rst | 2 +- Doc-3k/reference/lexical_analysis.rst | 9 +-------- 10 files changed, 20 insertions(+), 34 deletions(-) diff --git a/Doc-26/library/parser.rst b/Doc-26/library/parser.rst index f8248013e..c29300551 100644 --- a/Doc-26/library/parser.rst +++ b/Doc-26/library/parser.rst @@ -95,7 +95,7 @@ AST object. testing node values. -.. _creating asts: +.. _creating-asts: Creating AST Objects -------------------- @@ -149,7 +149,7 @@ and ``'exec'`` forms. maintained for backward compatibility. -.. _converting asts: +.. _converting-asts: Converting AST Objects ---------------------- @@ -210,7 +210,7 @@ numbering information. tree. -.. _querying asts: +.. _querying-asts: Queries on AST Objects ---------------------- @@ -240,7 +240,7 @@ determine if an AST was created from source code via :func:`expr` or syntactic fragments may be supported in the future. -.. _ast errors: +.. _ast-errors: Exceptions and Error Handling ----------------------------- @@ -269,7 +269,7 @@ cases, these exceptions carry all the meaning normally associated with them. Refer to the descriptions of each function for detailed information. -.. _ast objects: +.. _ast-objects: AST Objects ----------- @@ -311,7 +311,7 @@ AST objects have the following methods: Same as ``ast2tuple(ast, line_info)``. -.. _ast examples: +.. _ast-examples: Examples -------- diff --git a/Doc-26/library/pprint.rst b/Doc-26/library/pprint.rst index 1211b9686..36301765c 100644 --- a/Doc-26/library/pprint.rst +++ b/Doc-26/library/pprint.rst @@ -148,7 +148,7 @@ One more support function is also defined: 1.5/sharedmodules', '/usr/local/lib/python1.5/tkinter']" -.. _prettyprinter objects: +.. _prettyprinter-objects: PrettyPrinter Objects --------------------- diff --git a/Doc-26/library/termios.rst b/Doc-26/library/termios.rst index 63cda6c37..4847949a4 100644 --- a/Doc-26/library/termios.rst +++ b/Doc-26/library/termios.rst @@ -83,7 +83,7 @@ The module defines the following functions: Example ------- -.. _termios example: +.. _termios-example: Here's a function that prompts for a password with echoing turned off. Note the technique using a separate :func:`tcgetattr` call and a :keyword:`try` ... diff --git a/Doc-26/library/zipimport.rst b/Doc-26/library/zipimport.rst index 0d3a082ec..b6969d7ed 100644 --- a/Doc-26/library/zipimport.rst +++ b/Doc-26/library/zipimport.rst @@ -119,7 +119,7 @@ zipimporter Objects Examples -------- -.. _zipimport examples: +.. _zipimport-examples: Here is an example that imports a module from a ZIP archive - note that the :mod:`zipimport` module is not explicitly used. :: diff --git a/Doc-26/reference/lexical_analysis.rst b/Doc-26/reference/lexical_analysis.rst index 40cb29a72..09b828840 100644 --- a/Doc-26/reference/lexical_analysis.rst +++ b/Doc-26/reference/lexical_analysis.rst @@ -343,12 +343,7 @@ Keywords The following identifiers are used as reserved words, or *keywords* of the language, and cannot be used as ordinary identifiers. They must be spelled -exactly as written here: - -.. % -.. % - -:: +exactly as written here:: and del from not while as elif global or with @@ -358,8 +353,6 @@ exactly as written here: continue finally is return def for lambda try -.. % When adding keywords, use reswords.py for reformatting - .. versionchanged:: 2.4 :const:`None` became a constant and is now recognized by the compiler as a name for the built-in object :const:`None`. Although it is not a keyword, you cannot diff --git a/Doc-3k/library/parser.rst b/Doc-3k/library/parser.rst index d52ea12ca..b7675617f 100644 --- a/Doc-3k/library/parser.rst +++ b/Doc-3k/library/parser.rst @@ -95,7 +95,7 @@ AST object. testing node values. -.. _creating asts: +.. _creating-asts: Creating AST Objects -------------------- @@ -149,7 +149,7 @@ and ``'exec'`` forms. maintained for backward compatibility. -.. _converting asts: +.. _converting-asts: Converting AST Objects ---------------------- @@ -212,7 +212,7 @@ numbering information. tree. -.. _querying asts: +.. _querying-asts: Queries on AST Objects ---------------------- @@ -242,7 +242,7 @@ determine if an AST was created from source code via :func:`expr` or syntactic fragments may be supported in the future. -.. _ast errors: +.. _ast-errors: Exceptions and Error Handling ----------------------------- @@ -271,7 +271,7 @@ cases, these exceptions carry all the meaning normally associated with them. Refer to the descriptions of each function for detailed information. -.. _ast objects: +.. _ast-objects: AST Objects ----------- @@ -313,7 +313,7 @@ AST objects have the following methods: Same as ``ast2tuple(ast, line_info)``. -.. _ast examples: +.. _ast-examples: Examples -------- diff --git a/Doc-3k/library/pprint.rst b/Doc-3k/library/pprint.rst index 1211b9686..36301765c 100644 --- a/Doc-3k/library/pprint.rst +++ b/Doc-3k/library/pprint.rst @@ -148,7 +148,7 @@ One more support function is also defined: 1.5/sharedmodules', '/usr/local/lib/python1.5/tkinter']" -.. _prettyprinter objects: +.. _prettyprinter-objects: PrettyPrinter Objects --------------------- diff --git a/Doc-3k/library/termios.rst b/Doc-3k/library/termios.rst index 0120c13af..695faade0 100644 --- a/Doc-3k/library/termios.rst +++ b/Doc-3k/library/termios.rst @@ -83,7 +83,7 @@ The module defines the following functions: Example ------- -.. _termios example: +.. _termios-example: Here's a function that prompts for a password with echoing turned off. Note the technique using a separate :func:`tcgetattr` call and a :keyword:`try` ... diff --git a/Doc-3k/library/zipimport.rst b/Doc-3k/library/zipimport.rst index 9c272704c..f2b23586a 100644 --- a/Doc-3k/library/zipimport.rst +++ b/Doc-3k/library/zipimport.rst @@ -115,7 +115,7 @@ zipimporter Objects Examples -------- -.. _zipimport examples: +.. _zipimport-examples: Here is an example that imports a module from a ZIP archive - note that the :mod:`zipimport` module is not explicitly used. :: diff --git a/Doc-3k/reference/lexical_analysis.rst b/Doc-3k/reference/lexical_analysis.rst index 7b0c4c0f5..35e92cf9c 100644 --- a/Doc-3k/reference/lexical_analysis.rst +++ b/Doc-3k/reference/lexical_analysis.rst @@ -343,12 +343,7 @@ Keywords The following identifiers are used as reserved words, or *keywords* of the language, and cannot be used as ordinary identifiers. They must be spelled -exactly as written here: - -.. % -.. % - -:: +exactly as written here:: and def for is raise as del from lambda return @@ -357,8 +352,6 @@ exactly as written here: class except import pass with continue finally in print yield -.. % When adding keywords, use reswords.py for reformatting - .. versionchanged:: 2.4 :const:`None` became a constant and is now recognized by the compiler as a name for the built-in object :const:`None`. Although it is not a keyword, you cannot