libplacebo icon indicating copy to clipboard operation
libplacebo copied to clipboard

SyntaxWarning in glsl_preproc/macros.py

Open sfan5 opened this issue 1 year ago • 1 comments

/home/stefan/aurbuild/libplacebo-git.git/src/libplacebo/tools/glsl_preproc/macros.py:87: SyntaxWarning: invalid escape sequence '\s'
  line = re.sub(f'^\s{{1,{leading_spaces}}}', '', line)

no bug because "\s" == "\\s"

sfan5 avatar Jun 20 '24 22:06 sfan5

This occurs only with Python 3.12 and later.

To fix this bug, use a raw string; see https://docs.python.org/3/library/re.html

ryandesign avatar Sep 25 '24 04:09 ryandesign