diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2014-07-05 08:11:09 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2014-07-05 08:11:09 (GMT) |
commit | e8b59dac125769a8436c8b08271446029353b24c (patch) | |
tree | f0d730a4b9fa7605d61a6d1733391006ea03cf31 | |
parent | a93342b8b2aeb0332de9ea0880d4592824467f3f (diff) | |
parent | 5021cb553c2c6bf7219882c36b9f6b2bdee5bd24 (diff) | |
download | cpython-e8b59dac125769a8436c8b08271446029353b24c.zip cpython-e8b59dac125769a8436c8b08271446029353b24c.tar.gz cpython-e8b59dac125769a8436c8b08271446029353b24c.tar.bz2 |
Issue #21920: Merge from 3.4.
-rw-r--r-- | Doc/library/__main__.rst | 2 |
1 files changed, 1 insertions, 1 deletions
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 |