diff options
author | Guido Günther <agx@sigxcpu.org> | 2018-10-14 11:17:43 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2018-10-15 10:15:08 +0200 |
commit | 6b1342253eecd83e514400fccc531205450b13d3 (patch) | |
tree | 44180789a4991c356740dbd2212b548ec35e7368 /gbp/rpm/policy.py | |
parent | 497addcb69ddb53199c75d29004239e1cbb8495a (diff) |
Fix flake8's W605 (invalid escape sequence)
See also
https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior
Diffstat (limited to 'gbp/rpm/policy.py')
-rw-r--r-- | gbp/rpm/policy.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gbp/rpm/policy.py b/gbp/rpm/policy.py index a027ed99..a667bb7d 100644 --- a/gbp/rpm/policy.py +++ b/gbp/rpm/policy.py @@ -30,9 +30,9 @@ class RpmPkgPolicy(PkgPolicy): alnum = 'a-zA-Z0-9' # Valid characters for RPM pkg name - name_whitelist_chars = '._+%{}\-' + name_whitelist_chars = r'._+%{}\-' # Valid characters for RPM pkg version - version_whitelist_chars = '._+%{}~' + version_whitelist_chars = r'._+%{}~' # Regexp for checking the validity of package name packagename_re = re.compile("^[%s][%s%s]+$" % |