mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-26 13:21:07 +03:00
Fix invalid escape sequence in build-many-glibcs.py
Running build-many-glibcs.py with Python 3.12 or later produces a warning: build-many-glibcs.py:173: SyntaxWarning: invalid escape sequence '\.' m = re.fullmatch('([0-9]+)\.([0-9]+)[.0-9]*', l) Use a raw string instead to avoid that warning. (Note: I haven't checked whether any other Python scripts included with glibc might have issues with newer Python versions.)
This commit is contained in:
@ -170,7 +170,7 @@ class Context(object):
|
||||
if l.startswith(starttext):
|
||||
l = l[len(starttext):]
|
||||
l = l.rstrip('"\n')
|
||||
m = re.fullmatch('([0-9]+)\.([0-9]+)[.0-9]*', l)
|
||||
m = re.fullmatch(r'([0-9]+)\.([0-9]+)[.0-9]*', l)
|
||||
return '%s.%s' % m.group(1, 2)
|
||||
print('error: could not determine glibc version')
|
||||
exit(1)
|
||||
|
Reference in New Issue
Block a user