def _get_json_data(eid=None, fpath=None):
 assert ((eid is not None) or (fpath is not None))
 if (fpath is not None):
  return gzip.open(fpath).read()
 fpath = (_jsonf % eid)
 if os.access(fpath, os.R_OK):
  return gzip.open(fpath).read()
 try:
  return urllib2.urlopen((_json_base_url % (eid, eid)), timeout=5).read()
 except urllib2.HTTPError:
  pass
 except socket.timeout:
  pass
 return None

def _get_json_data ( eid = None , fpath = None ) : assert ( ( eid is not None ) or ( fpath is not None ) ) if ( fpath is not None ) : return gzip . open ( fpath ) . read ( ) fpath = ( _jsonf % eid ) if os . access ( fpath , os . R_OK ) : return gzip . open ( fpath ) . read ( ) try : return urllib2 . urlopen ( ( _json_base_url % ( eid , eid ) ) , timeout = 5 ) . read ( ) except urllib2 . HTTPError : pass except socket . timeout : pass return None
returns the json data corresponding to the game represented by eid .