]> granicus.if.org Git - python/commitdiff
Issue #21920: Add a missing colon to the __main__ doc.
authorBerker Peksag <berker.peksag@gmail.com>
Sat, 5 Jul 2014 08:10:16 +0000 (11:10 +0300)
committerBerker Peksag <berker.peksag@gmail.com>
Sat, 5 Jul 2014 08:10:16 +0000 (11:10 +0300)
Patch by Stefan Tatschner.

Doc/library/__main__.rst

index fcbe53d912b62bc95ca4dd881eba70be29c13255..a46993d55ed24b4b68d2e2d3c211d339d7070191 100644 (file)
@@ -12,7 +12,7 @@ standard input, a script, or from an interactive prompt.
 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