mirror of https://github.com/python/cpython.git
parent
95cf9d9f4e
commit
60e1886e87
|
@ -46,16 +46,15 @@
|
||||||
|
|
||||||
initialcolor
|
initialcolor
|
||||||
initial color, as a color name or #RRGGBB format
|
initial color, as a color name or #RRGGBB format
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
__version__ = '1.1'
|
__version__ = '1.2'
|
||||||
|
|
||||||
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
|
||||||
from Switchboard import Switchboard
|
from Switchboard import Switchboard
|
||||||
from StripViewer import StripViewer
|
from StripViewer import StripViewer
|
||||||
|
@ -79,15 +78,17 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# Do this because PyncheWidget.py wants to get at the interpolated docstring
|
||||||
|
# too, for its Help menu.
|
||||||
def docstring():
|
def docstring():
|
||||||
return string.rstrip(__doc__ % globals())
|
return __doc__ % globals()
|
||||||
|
|
||||||
|
|
||||||
def usage(status, msg=''):
|
def usage(code, msg=''):
|
||||||
print docstring()
|
print docstring()
|
||||||
if msg:
|
if msg:
|
||||||
print msg
|
print msg
|
||||||
sys.exit(status)
|
sys.exit(code)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -217,6 +218,7 @@ def main():
|
||||||
run(app, sb)
|
run(app, sb)
|
||||||
sb.save_views()
|
sb.save_views()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
|
Loading…
Reference in New Issue