From: Berker Peksag Date: Sat, 5 Jul 2014 08:10:16 +0000 (+0300) Subject: Issue #21920: Add a missing colon to the __main__ doc. X-Git-Tag: v3.5.0a1~1344^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5021cb553c2c6bf7219882c36b9f6b2bdee5bd24;p=python Issue #21920: Add a missing colon to the __main__ doc. Patch by Stefan Tatschner. --- diff --git a/Doc/library/__main__.rst b/Doc/library/__main__.rst index fcbe53d912..a46993d55e 100644 --- a/Doc/library/__main__.rst +++ b/Doc/library/__main__.rst @@ -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