diff options
author | Tomasz Kramkowski <tomasz@kramkow.ski> | 2023-03-27 18:52:42 +0100 |
---|---|---|
committer | Tomasz Kramkowski <tomasz@kramkow.ski> | 2023-03-27 19:01:34 +0100 |
commit | 7de2f2fcf233c1e935c5bc9d8c97bcaf075d0f8b (patch) | |
tree | c17995778ab9ee550b94e6044d6e613296c608be | |
parent | 058771b594e9382cd65f3366129e017e357d659b (diff) | |
download | paste-7de2f2fcf233c1e935c5bc9d8c97bcaf075d0f8b.tar.gz paste-7de2f2fcf233c1e935c5bc9d8c97bcaf075d0f8b.tar.xz paste-7de2f2fcf233c1e935c5bc9d8c97bcaf075d0f8b.zip |
guard main() call to allow importing __main__
-rw-r--r-- | paste/__main__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/paste/__main__.py b/paste/__main__.py index 325bf09..2b19baa 100644 --- a/paste/__main__.py +++ b/paste/__main__.py @@ -136,4 +136,5 @@ def main(): print("Malformed token", file=stderr) -main() +if __name__ == "__main__": + main() |