Fix a few coding style nits in Buck build Python scripts
- Prefix regex strings with `r` - Remove unused imports - Rename variables and parameters to avoid redefinition of built-in types `dir` and `type` Change-Id: Ia21667b89631c751f241dd6499a2e460e3435697
This commit is contained in:
@@ -14,13 +14,12 @@
|
||||
# limitations under the License.
|
||||
|
||||
from optparse import OptionParser
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
|
||||
PAT_GERRIT = re.compile('^GERRIT')
|
||||
PAT_INCLUDE = re.compile('^(include::.*)(\[\])$')
|
||||
PAT_GET = re.compile('^get::([^ \t\n]*)')
|
||||
PAT_GERRIT = re.compile(r'^GERRIT')
|
||||
PAT_INCLUDE = re.compile(r'^(include::.*)(\[\])$')
|
||||
PAT_GET = re.compile(r'^get::([^ \t\n]*)')
|
||||
|
||||
GERRIT_UPLINK = """
|
||||
|
||||
|
Reference in New Issue
Block a user