20343: Define Python regexps with raw strings 20343-regexp-prefixes
authorBrett Smith <brett.smith@curii.com>
Wed, 5 Jul 2023 20:58:07 +0000 (16:58 -0400)
committerBrett Smith <brett.smith@curii.com>
Wed, 5 Jul 2023 20:58:07 +0000 (16:58 -0400)
commit6daa187dccdc8d7513417d5122fd145661647617
tree3bfbfd1d3d87048bcc7f8ebd0defb49e3e47c8b6
parentde9d73176a3cc5c965e10664c626348c575dfc98
20343: Define Python regexps with raw strings

Prevent the DeprecationWarning added to Python 3.6 for unrecognized
string escape sequences. Found candidates by running:

    git grep --line-number -E '\bre\.\w+\([^r]*\\'

Most of the changes just add the raw string prefix `r` to these regexps,
but I did make some other readability improvements while I was at it,
including switching from regexps to plain string test methods where
appropriate.

Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>
sdk/cwl/arvados_cwl/arvworkflow.py
sdk/python/arvados/_normalize_stream.py
sdk/python/arvados/arvfile.py
sdk/python/arvados/collection.py
sdk/python/arvados/config.py
sdk/python/arvados/util.py
sdk/python/tests/run_test_server.py
sdk/python/tests/test_arv_get.py
sdk/python/tests/test_collections.py
services/fuse/arvados_fuse/fusedir.py