diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2018-05-24 17:34:22 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-05-24 17:34:22 +0000 |
commit | c039ab084d61cb1af1938f77000a147ed6b4e25b (patch) | |
tree | 5de93af9689e4db7d56f94ff5f0ba57750d0737c /python | |
parent | 3332fdef7c41112a6cb58b377befab310b44fedd (diff) | |
parent | 1a479b6ecd958f6bc74d777922898a3d4fb544b2 (diff) | |
download | build_soong-c039ab084d61cb1af1938f77000a147ed6b4e25b.tar.gz build_soong-c039ab084d61cb1af1938f77000a147ed6b4e25b.tar.bz2 build_soong-c039ab084d61cb1af1938f77000a147ed6b4e25b.zip |
Merge "Allow "-" to be part of Python file names"
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" |