PortAudio / portaudio

PortAudio is a cross-platform, open-source C language library for real-time audio input and output.
Other
1.39k stars 291 forks source link

pa_whitelint.py: escape backslashes in regex strings (fixes warning in CI) #882

Closed RossBencina closed 5 months ago

RossBencina commented 5 months ago

Fixes the following warnings when running the whitespace checker CI script:

/home/runner/work/portaudio/portaudio/./pa_whitelint.py:192: SyntaxWarning: invalid escape sequence '\s'
  leadingWhitespaceRe = re.compile(b"^\s*")
/home/runner/work/portaudio/portaudio/./pa_whitelint.py:221: SyntaxWarning: invalid escape sequence '\s'
  trailingWhitespaceRe = re.compile(b"\s*$")