From dce3393dc4c75f9573321514eda2311ca19e8da9 Mon Sep 17 00:00:00 2001 From: ale-rt Date: Mon, 18 May 2020 00:05:34 +0200 Subject: [PATCH] Fix a deprecation warning on a regular expression Fixes #38 --- news/38.bugfix | 1 + plone/supermodel/utils.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 news/38.bugfix diff --git a/news/38.bugfix b/news/38.bugfix new file mode 100644 index 0000000..58963d7 --- /dev/null +++ b/news/38.bugfix @@ -0,0 +1 @@ +Fix a deprecation warning on a regular expression [ale-rt] diff --git a/plone/supermodel/utils.py b/plone/supermodel/utils.py index 9fd8919..c3b35a4 100644 --- a/plone/supermodel/utils.py +++ b/plone/supermodel/utils.py @@ -24,7 +24,7 @@ _marker = object() -noNS_re = re.compile('^{\S+}') +noNS_re = re.compile(r'^{\S+}') def ns(name, prefix=XML_NAMESPACE):