浏览代码

Merge pull request #14765 from ColinKinloch/master

Fixed Android NDK unified header detection for python 3
Rémi Verschelde 7 年之前
父节点
当前提交
863dcdf431
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      platform/android/detect.py

+ 1 - 1
platform/android/detect.py

@@ -277,7 +277,7 @@ def get_ndk_version(path):
     try:
         with open(prop_file_path) as prop_file:
             for line in prop_file:
-                key_value = map(lambda x: string.strip(x), line.split("="))
+                key_value = list(map(lambda x: x.strip(), line.split("=")))
                 if key_value[0] == "Pkg.Revision":
                     return key_value[1]
     except: