Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 60e1886

Browse files
committed
__version__: Bump to 1.2
De-string-module-ification.
1 parent 95cf9d9 commit 60e1886

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

Tools/pynche/Main.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,15 @@
4646
4747
initialcolor
4848
initial color, as a color name or #RRGGBB format
49-
5049
"""
5150

52-
__version__ = '1.1'
51+
__version__ = '1.2'
5352

5453
import sys
5554
import os
56-
import string
5755
import getopt
5856
import ColorDB
57+
5958
from PyncheWidget import PyncheWidget
6059
from Switchboard import Switchboard
6160
from StripViewer import StripViewer
@@ -79,15 +78,17 @@
7978

8079

8180

81+
# Do this because PyncheWidget.py wants to get at the interpolated docstring
82+
# too, for its Help menu.
8283
def docstring():
83-
return string.rstrip(__doc__ % globals())
84+
return __doc__ % globals()
8485

8586

86-
def usage(status, msg=''):
87+
def usage(code, msg=''):
8788
print docstring()
8889
if msg:
8990
print msg
90-
sys.exit(status)
91+
sys.exit(code)
9192

9293

9394

@@ -217,6 +218,7 @@ def main():
217218
run(app, sb)
218219
sb.save_views()
219220

221+
220222

221223
if __name__ == '__main__':
222224
main()

0 commit comments

Comments
 (0)