<s> """<STR_LIT>""" <EOL> __all__ = ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) <EOL> __version__ = ( <NUM_LIT:0> , <NUM_LIT:8> , <NUM_LIT:0> ) <EOL> __docformat__ = '<STR_LIT>' <EOL> import os <EOL> def _get_git_revision ( path ) : <EOL> revision_file = os . path . join ( path , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) <EOL> if not os . path . exists ( revision_file ) : <EOL> return None <EOL> fh = open ( revision_file , '<STR_LIT:r>' ) <EOL> try : <EOL> return fh . read ( ) . strip ( ) <EOL> finally : <EOL> fh . close ( ) <EOL> def get_revision ( ) : <EOL> """<STR_LIT>""" <EOL> package_dir = os . path . dirname ( __file__ ) <EOL> checkout_dir = os . path . normpath ( os . path . join ( package_dir , '<STR_LIT:..>' ) ) <EOL> path = os . path . join ( checkout_dir , '<STR_LIT>' ) <EOL> if os . path . exists ( path ) : <EOL> return _get_git_revision ( path ) <EOL> return None <EOL> __build__ = get_revision ( ) <EOL> def get_version ( ) : <EOL> base = '<STR_LIT:.>' . join ( map ( str , __version__ ) ) <EOL> if __build__ : <EOL> base = '<STR_LIT>' % ( base , __build__ ) <EOL> return base </s>
