fix deprecation warnings in regular expressions (!1804)

From https://docs.python.org/3/library/re.html
"Backslashes are not handled in any special way
in a string literal prefixed with 'r'."

Signed-off-by: Steffen Pankratz <kratz00@gmx.de>
This commit is contained in:
Steffen Pankratz 2019-07-26 23:45:24 +02:00 committed by Oliver Smith
parent 2c4dae736a
commit 3b240e46f7
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
2 changed files with 3 additions and 3 deletions

View file

@ -357,7 +357,7 @@ def frontend(args):
" or \"none\"")
extra = pmb.helpers.cli.ask(args, "Extra packages", None,
args.extra_packages,
validation_regex="^([-.+\w]+)(,[-.+\w]+)*$")
validation_regex=r"^([-.+\w]+)(,[-.+\w]+)*$")
cfg["pmbootstrap"]["extra_packages"] = extra
# Configure timezone info