

@classmethod
def parse_manifest(cls, manifest_path):
    'Parse the file at manifest_path and instantiate the AndroidManifestParser object.\n\n    :param string manifest_path: File path that points to an xml file.\n    :return: Object created from the parsed xml.\n    :rtype: AndroidManifest\n    '
    try:
        manifest = XmlParser.from_file(manifest_path)
        package_name = target_sdk.get_attribute('manifest', 'package')
    except XmlParser.XmlError as e:
        raise cls.BadManifestError('AndroidManifest.xml parsing error: {}'.format(e))
    target_sdk = manifest.get_optional_attribute('uses-sdk', 'android:targetSdkVersion')
    return AndroidManifest(manifest.xml_path, target_sdk, package_name)

dataset/ETHPy150Open pantsbuild/pants/contrib/android/src/python/pants/contrib/android/android_manifest_parser.py AndroidManifestParser.parse_manifest/VarMisuse@32/128 `manifest`->`target_sdk`