Commit 5021cb55 authored by Berker Peksag's avatar Berker Peksag

Issue #21920: Add a missing colon to the __main__ doc.

Patch by Stefan Tatschner.
parent acc8cf2c
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment