<s> """<STR_LIT>""" <EOL> import sys <EOL> from os import path <EOL> __version__ = '<STR_LIT>' <EOL> __released__ = '<STR_LIT>' <EOL> version_info = ( <NUM_LIT:1> , <NUM_LIT:5> , <NUM_LIT:0> , '<STR_LIT>' , <NUM_LIT:0> ) <EOL> package_dir = path . abspath ( path . dirname ( __file__ ) ) <EOL> __display_version__ = __version__ <EOL> if __version__ . endswith ( '<STR_LIT:+>' ) : <EOL> __display_version__ = __version__ <EOL> __version__ = __version__ [ : - <NUM_LIT:1> ] <EOL> try : <EOL> import subprocess <EOL> p = subprocess . Popen ( [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> path . join ( package_dir , '<STR_LIT:..>' ) ] , <EOL> stdout = subprocess . PIPE , stderr = subprocess . PIPE ) <EOL> out , err = p . communicate ( ) <EOL> if out : <EOL> __display_version__ += '<STR_LIT:/>' + out . decode ( ) . strip ( ) <EOL> except Exception : <EOL> pass <EOL> def main ( argv = sys . argv ) : <EOL> if sys . argv [ <NUM_LIT:1> : <NUM_LIT:2> ] == [ '<STR_LIT>' ] : <EOL> sys . exit ( make_main ( argv ) ) <EOL> else : <EOL> sys . exit ( build_main ( argv ) ) <EOL> def build_main ( argv = sys . argv ) : <EOL> """<STR_LIT>""" <EOL> if ( sys . version_info [ : <NUM_LIT:3> ] < ( <NUM_LIT:2> , <NUM_LIT:6> , <NUM_LIT:0> ) or <EOL> ( <NUM_LIT:3> , <NUM_LIT:0> , <NUM_LIT:0> ) <= sys . version_info [ : <NUM_LIT:3> ] < ( <NUM_LIT:3> , <NUM_LIT:3> , <NUM_LIT:0> ) ) : <EOL> sys . stderr . write ( '<STR_LIT>' ) <EOL> return <NUM_LIT:1> <EOL> try : <EOL> from sphinx import cmdline <EOL> except ImportError : <EOL> err = sys . exc_info ( ) [ <NUM_LIT:1> ] <EOL> errstr = str ( err ) <EOL> if errstr . lower ( ) . startswith ( '<STR_LIT>' ) : <EOL> whichmod = errstr [ <NUM_LIT:16> : ] <EOL> hint = '<STR_LIT>' <EOL> if whichmod . startswith ( '<STR_LIT>' ) : <EOL> whichmod = '<STR_LIT>' <EOL> elif whichmod . startswith ( '<STR_LIT>' ) : <EOL> whichmod = '<STR_LIT>' <EOL> elif whichmod == '<STR_LIT>' : <EOL> whichmod = '<STR_LIT>' <EOL> hint = ( '<STR_LIT>' <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> else : <EOL> whichmod += '<STR_LIT>' <EOL> sys . stderr . write ( '<STR_LIT>' <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' % whichmod ) <EOL> if hint : <EOL> sys . stderr . write ( hint ) <EOL> return <NUM_LIT:1> <EOL> raise <EOL> from sphinx . util . compat import docutils_version <EOL> if docutils_version < ( <NUM_LIT:0> , <NUM_LIT:10> ) : <EOL> sys . stderr . write ( '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> return <NUM_LIT:1> <EOL> return cmdline . main ( argv ) <EOL> def make_main ( argv = sys . argv ) : <EOL> """<STR_LIT>""" <EOL> from sphinx import make_mode <EOL> return make_mode . run_make_mode ( argv [ <NUM_LIT:2> : ] ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> sys . exit ( main ( sys . argv ) ) </s>
