diff options
author | Barry Warsaw <barry@python.org> | 1998-12-03 19:49:13 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 1998-12-03 19:49:13 (GMT) |
commit | d0e1e513851f81f721a0e63f60cb2b433b1f06dc (patch) | |
tree | 13baf4129ee25b2a82a4556c02eb80815e124b2d /Tools | |
parent | f622a33b295647acfa7d673cd82ac55002157e9a (diff) | |
download | cpython-d0e1e513851f81f721a0e63f60cb2b433b1f06dc.zip cpython-d0e1e513851f81f721a0e63f60cb2b433b1f06dc.tar.gz cpython-d0e1e513851f81f721a0e63f60cb2b433b1f06dc.tar.bz2 |
docstring(): Function for returning __doc__ % globals()
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/pynche/Main.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Tools/pynche/Main.py b/Tools/pynche/Main.py index 320b503..8720800 100644 --- a/Tools/pynche/Main.py +++ b/Tools/pynche/Main.py @@ -53,6 +53,7 @@ __version__ = '0.1' import sys import os +import string import getopt import ColorDB from PyncheWidget import PyncheWidget @@ -76,8 +77,12 @@ RGB_TXT = [ +def docstring(): + return string.rstrip(__doc__ % globals()) + + def usage(status, msg=''): - print __doc__ % globals() + print docstring() if msg: print msg sys.exit(status) |