diff roundup/cgi/form_parser.py @ 5809:936275dfe1fa

Try to fix: DeprecationWarning: invalid escape sequence \d DeprecationWarning: invalid escape sequence \s DeprecationWarning: invalid escape sequence \) Strings under python 3 are unicode strings rather then "regular" strings as under python 2. So all regexps need to be raw strings. We will see how many I fixed and if I broke any.
author John Rouillard <rouilj@ieee.org>
date Wed, 12 Jun 2019 20:34:47 -0400
parents c5c33e62da39
children ed19b123a7ac
line wrap: on
line diff
--- a/roundup/cgi/form_parser.py	Wed Jun 12 19:52:29 2019 -0400
+++ b/roundup/cgi/form_parser.py	Wed Jun 12 20:34:47 2019 -0400
@@ -41,7 +41,7 @@
             self._ = self.gettext = _translator.gettext
             self.ngettext = _translator.ngettext
 
-    def parse(self, create=0, num_re=re.compile('^\d+$')):
+    def parse(self, create=0, num_re=re.compile(r'^\d+$')):
         """ Item properties and their values are edited with html FORM
             variables and their values. You can:
 

Roundup Issue Tracker: http://roundup-tracker.org/