##// END OF EJS Templates
Defer import of optparse
Thomas Kluyver -
Show More
@@ -41,7 +41,6 b" _scheme_default = 'Linux'"
41 41 import StringIO
42 42 import keyword
43 43 import os
44 import optparse
45 44 import sys
46 45 import token
47 46 import tokenize
@@ -263,6 +262,7 b' def main(argv=None):'
263 262 Colorize a python file or stdin using ANSI color escapes and print to stdout.
264 263 If no filename is given, or if filename is -, read standard input."""
265 264
265 import optparse
266 266 parser = optparse.OptionParser(usage=usage_msg)
267 267 newopt = parser.add_option
268 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