<s> import os . path <EOL> import warnings <EOL> __version__ = ( <NUM_LIT:0> , <NUM_LIT:2> ) <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 ( ) <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 lazy_object ( location ) : <EOL> def inner ( * args , ** kwargs ) : <EOL> parts = location . rsplit ( '<STR_LIT:.>' , <NUM_LIT:1> ) <EOL> warnings . warn ( '<STR_LIT>' % ( parts [ <NUM_LIT:1> ] , location ) , DeprecationWarning ) <EOL> imp = __import__ ( parts [ <NUM_LIT:0> ] , globals ( ) , locals ( ) , [ parts [ <NUM_LIT:1> ] ] , - <NUM_LIT:1> ) <EOL> func = getattr ( imp , parts [ <NUM_LIT:1> ] ) <EOL> if callable ( func ) : <EOL> return func ( * args , ** kwargs ) <EOL> return func <EOL> return inner <EOL> SharedMemoryModel = lazy_object ( '<STR_LIT>' ) </s>
