def read_package_file(package, relative_path, binary=False):
 if (relative_path is None):
  return False
 package_dir = _get_package_dir(package)
 if (os.path.exists(package_dir) and _regular_file_exists(package, relative_path)):
  return _read_regular_file(package, relative_path, binary)
 if (int(sublime.version()) >= 3000):
  result = _read_zip_file(package, relative_path, binary)
  if (result is not False):
   return result
 return False

def read_package_file ( package , relative_path , binary = False ) : if ( relative_path is None ) : return False package_dir = _get_package_dir ( package ) if ( os . path . exists ( package_dir ) and _regular_file_exists ( package , relative_path ) ) : return _read_regular_file ( package , relative_path , binary ) if ( int ( sublime . version ( ) ) >= 3000 ) : result = _read_zip_file ( package , relative_path , binary ) if ( result is not False ) : return result return False
reads the contents of a file that is part of a package .