mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 10:41:31 +00:00
[gclient] Fix SyntaxWarning when running py3.13
R=gavinmak@google.com Bug: 40283283 Change-Id: I1a4a53f9d50eaa8601113485a07297c0863f7466 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6442907 Commit-Queue: Gavin Mak <gavinmak@google.com> Auto-Submit: Josip Sokcevic <sokcevic@chromium.org> Reviewed-by: Gavin Mak <gavinmak@google.com>
This commit is contained in:
@@ -433,7 +433,7 @@ class GitWrapper(SCMWrapper):
|
||||
patch_rev_tokens = patch_rev.split('/')
|
||||
change = patch_rev_tokens[-2]
|
||||
# Parse the googlesource_url.
|
||||
tokens = re.search('//(.+).googlesource.com/(.+?)(?:\.git)?$',
|
||||
tokens = re.search(r'//(.+).googlesource.com/(.+?)(?:\.git)?$',
|
||||
googlesource_url)
|
||||
if not tokens or len(tokens.groups()) != 2:
|
||||
# googlesource_url is not in the expected format.
|
||||
|
||||
Reference in New Issue
Block a user