parameters: (input_file)
docstring: Returns True iff a ZipFile instance is for a regular APK.
docstring_summary: Returns True iff a ZipFile instance is for a regular APK.
docstring_tokens: Returns True iff a ZipFile instance is for a regular APK .
function: def IsFilePathAnApk(input_file):
    """Returns True iff a ZipFile instance is for a regular APK."""
    try:
      with zipfile.ZipFile(input_file) as input_zip:
        _ = input_zip.getinfo(RESOURCES_FILENAME)
        return True
    except:
      return False
function_tokens: def IsFilePathAnApk ( input_file ) : try : with zipfile . ZipFile ( input_file ) as input_zip : _ = input_zip . getinfo ( RESOURCES_FILENAME ) return True except : return False