wannier-developers / wannier90

Official repository of the Wannier90 code
http://www.wannier.org
GNU General Public License v2.0
234 stars 138 forks source link

Python 3.11 complains about invalid escape sequence in `test-suite/tools/parsers/parse_wpout.py` #507

Open merkys opened 3 months ago

merkys commented 3 months ago

Multiple SyntaxWarnings are thrown from test-suite/tools/parsers/parse_wpout.py when running tests with Python 3.11, for example:

test-suite/tools/parsers/parse_wpout.py:16:
SyntaxWarning: invalid escape sequence '\s'
near_neigh_re = re.compile("^\s*\|\s+(\d+)\s+([\d\.]+)\s*(\d+)\s*")