##// END OF EJS Templates
Defer import of optparse
Thomas Kluyver -
Show More
@@ -41,7 +41,6 b" _scheme_default = 'Linux'"
41 import StringIO
41 import StringIO
42 import keyword
42 import keyword
43 import os
43 import os
44 import optparse
45 import sys
44 import sys
46 import token
45 import token
47 import tokenize
46 import tokenize
@@ -263,6 +262,7 b' def main(argv=None):'
263 Colorize a python file or stdin using ANSI color escapes and print to stdout.
262 Colorize a python file or stdin using ANSI color escapes and print to stdout.
264 If no filename is given, or if filename is -, read standard input."""
263 If no filename is given, or if filename is -, read standard input."""
265
264
265 import optparse
266 parser = optparse.OptionParser(usage=usage_msg)
266 parser = optparse.OptionParser(usage=usage_msg)
267 newopt = parser.add_option
267 newopt = parser.add_option
268 newopt('-s','--scheme',metavar='NAME',dest='scheme_name',action='store',
268 newopt('-s','--scheme',metavar='NAME',dest='scheme_name',action='store',
General Comments 0
You need to be logged in to leave comments. Login now