<s> """<STR_LIT>""" <EOL> import runpy <EOL> import sys <EOL> import operator <EOL> from os import path <EOL> from django . core . management . base import BaseCommand , CommandError <EOL> def run ( filename , args ) : <EOL> if hasattr ( args , "<STR_LIT>" ) : <EOL> args = args . split ( ) <EOL> sys . argv = [ filename ] + args <EOL> runpy . run_path ( filename , globals ( ) , run_name = "<STR_LIT:__main__>" ) <EOL> class Command ( BaseCommand ) : <EOL> args = '<STR_LIT>' <EOL> help = __doc__ <EOL> def handle ( self , * args , ** options ) : <EOL> if not args : <EOL> raise CommandError ( "<STR_LIT>" ) <EOL> args = map ( operator . methodcaller ( "<STR_LIT>" , "<STR_LIT::>" ) , args ) <EOL> for arg in args : <EOL> try : <EOL> filename , filename_args = arg <EOL> except ValueError : <EOL> filename , = arg <EOL> filename_args = "<STR_LIT>" <EOL> if not path . isfile ( filename ) : <EOL> raise CommandError ( "<STR_LIT>" . format ( filename ) ) <EOL> run ( filename , filename_args ) </s>
