def command_py2to3(args):
 from lib2to3.main import main
 args2 = []
 if command_py2to3_work_around3k:
  if args.no_diffs:
   args2.append('--no-diffs')
  if args.write:
   args2.append('-w')
  if args.nobackups:
   args2.append('-n')
 args2.extend(args.sources)
 sys.exit(main('lib2to3.fixes', args=args2))

def command_py2to3 ( args ) : from lib2to3 . main import main args2 = [ ] if command_py2to3_work_around3k : if args . no_diffs : args2 . append ( '--no-diffs' ) if args . write : args2 . append ( '-w' ) if args . nobackups : args2 . append ( '-n' ) args2 . extend ( args . sources ) sys . exit ( main ( 'lib2to3.fixes' , args = args2 ) )
apply 2to3 tool to python sources .