<s> """<STR_LIT>""" <EOL> __all__ = [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT:b>' , <EOL> '<STR_LIT>' ] <EOL> import sys <EOL> import os <EOL> if sys . version_info >= ( <NUM_LIT:2> , <NUM_LIT:7> ) : <EOL> from collections import OrderedDict <EOL> else : <EOL> from pgxnclient . utils . ordereddict import OrderedDict <EOL> if sys . version_info >= ( <NUM_LIT:2> , <NUM_LIT:7> ) : <EOL> import json <EOL> else : <EOL> import simplejson as json <EOL> def load_json ( f ) : <EOL> data = f . read ( ) <EOL> if not isinstance ( data , unicode ) : <EOL> data = data . decode ( '<STR_LIT:utf-8>' ) <EOL> return load_jsons ( data ) <EOL> def load_jsons ( data ) : <EOL> return json . loads ( data , object_pairs_hook = OrderedDict ) <EOL> from hashlib import sha1 <EOL> if sys . version_info < ( <NUM_LIT:3> , ) : <EOL> def b ( s ) : <EOL> return s <EOL> else : <EOL> def b ( s ) : <EOL> return s . encode ( '<STR_LIT:utf8>' ) <EOL> def find_executable ( name ) : <EOL> """<STR_LIT>""" <EOL> for dir in os . environ . get ( '<STR_LIT>' , '<STR_LIT>' ) . split ( os . pathsep ) : <EOL> if not dir : <EOL> continue <EOL> fn = os . path . abspath ( os . path . join ( dir , name ) ) <EOL> if os . path . exists ( fn ) : <EOL> return os . path . abspath ( fn ) </s>
