diff options
author | Nan Zhang <nanzhang@google.com> | 2018-05-15 17:13:38 -0700 |
---|---|---|
committer | Nan Zhang <nanzhang@google.com> | 2018-05-23 15:15:39 -0700 |
commit | 1a479b6ecd958f6bc74d777922898a3d4fb544b2 (patch) | |
tree | 2d8d235a95f3146ab3d1befd58e82dd579cfd604 /python | |
parent | 78a01965d077fef952a228ab4a9a0cd1cb51670a (diff) | |
download | build_soong-1a479b6ecd958f6bc74d777922898a3d4fb544b2.tar.gz build_soong-1a479b6ecd958f6bc74d777922898a3d4fb544b2.tar.bz2 build_soong-1a479b6ecd958f6bc74d777922898a3d4fb544b2.zip |
Allow "-" to be part of Python file names
Test: m -j py-setuptools
Bug: b/79751992
Change-Id: I4cd0cf8671a9bb912a8ba819265274ab0c9e0074
Diffstat (limited to 'python')
-rw-r--r-- | python/python.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/python.go b/python/python.go index 65e3efd4..6d6ac27b 100644 --- a/python/python.go +++ b/python/python.go @@ -206,7 +206,7 @@ type dependencyTag struct { var ( pythonLibTag = dependencyTag{name: "pythonLib"} launcherTag = dependencyTag{name: "launcher"} - pyIdentifierRegexp = regexp.MustCompile(`^([a-z]|[A-Z]|_)([a-z]|[A-Z]|[0-9]|_)*$`) + pyIdentifierRegexp = regexp.MustCompile(`^[a-zA-Z_][a-zA-Z0-9_-]*$`) pyExt = ".py" protoExt = ".proto" pyVersion2 = "PY2" |