Bug#1085904: python-diaspy: Python SyntaxWarning
Source: python-diaspy
Version: 0.6.0-6
User: debian-python@lists.debian.org
Usertags: syntaxwarning
Hi Maintainer
The SyntaxWarning below were emitted when this package was tested with
pipuarts[1].
Regards
Graham
[1] https://piuparts.debian.org/sid/source/p/python-diaspy.html
Setting up python3-diaspy (0.6.0-6) ...
/usr/lib/python3/dist-packages/diaspy/people.py:19: SyntaxWarning:
invalid escape sequence '\.'
if re.match('^[a-zA-Z]+[a-zA-Z0-9_-]*@[a-z0-9.]+\.[a-z]+$', handle) is None:
/usr/lib/python3/dist-packages/diaspy/settings.py:27: SyntaxWarning:
invalid escape sequence '\['
email_regexp = re.compile('<input id="user_email"
name="user\[email\]" size="30" type="text" value="(.+?)"')
/usr/lib/python3/dist-packages/diaspy/settings.py:149:
SyntaxWarning: invalid escape sequence '\['
firstname_regexp = re.compile('id="profile_first_name"
name="profile\[first_name\]" type="text" value="(.*?)" />')
/usr/lib/python3/dist-packages/diaspy/settings.py:150:
SyntaxWarning: invalid escape sequence '\['
lastname_regexp = re.compile('id="profile_last_name"
name="profile\[last_name\]" type="text" value="(.*?)" />')
/usr/lib/python3/dist-packages/diaspy/settings.py:151:
SyntaxWarning: invalid escape sequence '\['
bio_regexp = re.compile('<textarea id="profile_bio"
name="profile\[bio\]" placeholder="Fill me out"
rows="5">\n(.*?)</textarea>')
/usr/lib/python3/dist-packages/diaspy/settings.py:152:
SyntaxWarning: invalid escape sequence '\['
location_regexp = re.compile('id="profile_location"
name="profile\[location\]" placeholder="Fill me out" type="text"
value="(.*?)" />')
/usr/lib/python3/dist-packages/diaspy/settings.py:153:
SyntaxWarning: invalid escape sequence '\['
gender_regexp = re.compile('id="profile_gender"
name="profile\[gender\]" placeholder="Fill me out" type="text"
value="(.*?)" />')
/usr/lib/python3/dist-packages/diaspy/settings.py:157:
SyntaxWarning: invalid escape sequence '\['
is_searchable_regexp = re.compile('checked="checked"
id="profile_searchable" name="profile\[searchable\]" type="checkbox"
value="(.*?)" />')
/usr/lib/python3/dist-packages/diaspy/settings.py:158:
SyntaxWarning: invalid escape sequence '\['
is_nsfw_regexp = re.compile('checked="checked" id="profile_nsfw"
name="profile\[nsfw\]" type="checkbox" value="(.*?)" />')
Reply to: