Skip to content

Commit 6dbf2c9

Browse files
authored
Merge pull request #270 from mailgun/soskooi/BB-844
add backport to deprecated imghdr library
2 parents 0c774c0 + cb12153 commit 6dbf2c9

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

flanker/addresslib/plugins/gmail.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# coding:utf-8
22

3-
'''
3+
r'''
44
Email address validation plugin for gmail.com email addresses.
55
66
Notes:

flanker/mime/message/headers/wrappers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def scan(cls, string):
182182

183183

184184
class Subject(six.text_type):
185-
RE_RE = re.compile("((RE|FW|FWD|HA)([[]\d])*:\s*)*", re.I)
185+
RE_RE = re.compile(r"((RE|FW|FWD|HA)([[]\d])*:\s*)*", re.I)
186186

187187
def __new__(cls, *args, **kw):
188188
return six.text_type.__new__(cls, *args, **kw)

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
'ply>=3.10',
4141
'regex>=0.1.20110315',
4242
'six',
43+
'standard-imghdr==3.13.0',
4344
'tld',
4445
'WebOb>=0.9.8'],
4546
extras_require={

0 commit comments

Comments
 (0)