libvirt/build-aux
Daniel P. Berrangé d5c5d8af45 python: mark regex strings with 'r' prefix
When writing regexes special regex matches like "\d" can get
misinterpreted as normal string escape sequences:

docs/apibuild.py:1359:51: W605 invalid escape sequence '\d'
                        value = value + re.sub("^(\d+)U$", "\\1", token[1])
                                                  ^
docs/apibuild.py:2134:31: W605 invalid escape sequence '\('
                m = re.match("\(?1<<(\d+)\)?", info[0])
                              ^
docs/apibuild.py:2134:38: W605 invalid escape sequence '\d'
                m = re.match("\(?1<<(\d+)\)?", info[0])
                                     ^
docs/apibuild.py:2134:42: W605 invalid escape sequence '\)'
                m = re.match("\(?1<<(\d+)\)?", info[0])
                                         ^

To avoid this probem all regexes should use the r"...." syntax for their
strings, which disables normal string escape sequences.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2019-11-11 14:24:19 +00:00
..
check-spacing.pl Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
header-ifdef.pl syntax check: update header guard check 2019-06-20 09:01:07 +02:00
mock-noinline.pl Use G_GNUC_NO_INLINE instead of ATTRIBUTE_NOINLINE 2019-10-15 16:14:18 +02:00
prohibit-duplicate-header.pl perl: Don't hardcode interpreter path 2017-09-19 16:04:53 +02:00
syntax-check.mk python: mark regex strings with 'r' prefix 2019-11-11 14:24:19 +00:00
useless-if-before-free build: import gnulib's syntax-check make rules 2019-10-09 13:36:29 +01:00
vc-list-files build: import gnulib's syntax-check make rules 2019-10-09 13:36:29 +01:00