Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix SyntaxWarning: invalid escape sequence + for py3.12 #1017

Closed
wants to merge 1 commit into from

Conversation

chenrui333
Copy link
Contributor

@chenrui333 chenrui333 commented Dec 19, 2023

/opt/homebrew/Cellar/google-java-format/1.19.0/bin/google-java-format-diff:78: SyntaxWarning: invalid escape sequence '\+'
  match = re.search('^\+\+\+\ (.*?/){%s}(\S*)' % args.p, line)
/opt/homebrew/Cellar/google-java-format/1.19.0/bin/google-java-format-diff:91: SyntaxWarning: invalid escape sequence '\+'
  match = re.search('^@@.*\+(\d+)(,(\d+))?', line)

relates to Homebrew/homebrew-core#157669

cc @cushon

copybara-service bot pushed a commit that referenced this pull request Dec 19, 2023
```
/opt/homebrew/Cellar/google-java-format/1.19.0/bin/google-java-format-diff:78: SyntaxWarning: invalid escape sequence '\+'
  match = re.search('^\+\+\+\ (.*?/){%s}(\S*)' % args.p, line)
/opt/homebrew/Cellar/google-java-format/1.19.0/bin/google-java-format-diff:91: SyntaxWarning: invalid escape sequence '\+'
  match = re.search('^@@.*\+(\d+)(,(\d+))?', line)
```

relates to Homebrew/homebrew-core#157669

cc @cushon

Fixes #1017

FUTURE_COPYBARA_INTEGRATE_REVIEW=#1017 from chenrui333:py3.12 36d80d1
PiperOrigin-RevId: 592245150
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants