Kaydet (Commit) d0e1e513 authored tarafından Barry Warsaw's avatar Barry Warsaw

docstring(): Function for returning __doc__ % globals()

üst f622a33b
...@@ -53,6 +53,7 @@ __version__ = '0.1' ...@@ -53,6 +53,7 @@ __version__ = '0.1'
import sys import sys
import os import os
import string
import getopt import getopt
import ColorDB import ColorDB
from PyncheWidget import PyncheWidget from PyncheWidget import PyncheWidget
...@@ -76,8 +77,12 @@ RGB_TXT = [ ...@@ -76,8 +77,12 @@ RGB_TXT = [
def docstring():
return string.rstrip(__doc__ % globals())
def usage(status, msg=''): def usage(status, msg=''):
print __doc__ % globals() print docstring()
if msg: if msg:
print msg print msg
sys.exit(status) sys.exit(status)
......
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