From 5021cb553c2c6bf7219882c36b9f6b2bdee5bd24 Mon Sep 17 00:00:00 2001 From: Berker Peksag Date: Sat, 5 Jul 2014 11:10:16 +0300 Subject: Issue #21920: Add a missing colon to the __main__ doc. Patch by Stefan Tatschner. --- Doc/library/__main__.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/__main__.rst b/Doc/library/__main__.rst index fcbe53d..a46993d 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 -- cgit v0.12