[Python-checkins] cpython (3.4): Issue #21920: Add a missing colon to the __main__ doc.

berker.peksag python-checkins at python.org
Sat Jul 5 10:11:04 CEST 2014


http://hg.python.org/cpython/rev/6094aa25b33c
changeset:   91550:6094aa25b33c
branch:      3.4
parent:      91548:758468cdf72c
user:        Berker Peksag <berker.peksag at gmail.com>
date:        Sat Jul 05 11:10:16 2014 +0300
summary:
  Issue #21920: Add a missing colon to the __main__ doc.

Patch by Stefan Tatschner.

files:
  Doc/library/__main__.rst |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Doc/library/__main__.rst b/Doc/library/__main__.rst
--- a/Doc/library/__main__.rst
+++ b/Doc/library/__main__.rst
@@ -12,7 +12,7 @@
 A module can discover whether or not it is running in the main scope by
 checking its own ``__name__``, which allows a common idiom for conditionally
 executing code in a module when it is run as a script or with ``python
--m`` but not when it is imported:
+-m`` but not when it is imported::
 
    if __name__ == "__main__":
        # execute only if run as a script

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list