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

scripts/build/verinfo.py: use a python raw string for the regular expression #12069

Merged
merged 1 commit into from
Feb 27, 2024

Conversation

ksherlock
Copy link
Contributor

so \ chars aren't treated as part of an escape sequence. (It does the right thing but it generates a warning)

python3 ./scripts/build/verinfo.py 
./scripts/build/verinfo.py:26: SyntaxWarning: invalid escape sequence '\s'
  pattern = re.compile('\s+BARE_BUILD_VERSION\s+"(([^."]+)\.([^."]+))"')
usage: verinfo.py [-h] [--target <target>] [--subtarget <subtarget>] [--executable <executable>] [--format <format>] [--resources <resfile>] [-o <outfile>]
                  <srcfile>

@cuavas cuavas merged commit 068704c into mamedev:master Feb 27, 2024
5 checks passed
Mokona pushed a commit to Mokona/mame that referenced this pull request Feb 28, 2024
…sion. (mamedev#12069)

Fixes Pylint invalid escape sequence warning.
stonedDiscord pushed a commit to stonedDiscord/mame that referenced this pull request Apr 8, 2024
…sion. (mamedev#12069)

Fixes Pylint invalid escape sequence warning.
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.

3 participants