import sympy
import symbolic
-from moedebug import dbg_file, dbg
+from moedebug import *
opt_parser = OptionParser()
opt_parser.add_option('-q',dest='quiet',action='store_true',
if (not options.ascii) and sys.stdout.encoding is None:
sys.stdout = codecs.open("/dev/stdout", "w", 'utf-8')
-dbg_file = None if options.quiet else sys.stdout
-if dbg_file:
+if not options.quiet: dbg_file(sys.stdout)
+if dbg_enabled():
sympy.init_printing(use_unicode=(not options.ascii),
num_columns=options.width)