Skip to content

Commit

Permalink
support 3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
ikvk committed Oct 4, 2021
1 parent 3756256 commit 4733809
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
6 changes: 5 additions & 1 deletion docs/release_notes.rst
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
0.49.1
======
* Fix support for python 3.5

0.49.0
======
* Fixed message.MailAttachment.size wrong size bug
* query.LogicOperator (and subclasses AND, OR, NOT) now have type annotated named search keys

0.48.1
======
* fix type annotations
* Fix type annotations

0.48.0
======
Expand Down
2 changes: 2 additions & 0 deletions docs/todo.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
Release 1.0.0 after 3 month of quiet in issues and merge requests

test py versions by tox

drop 3.5
2 changes: 1 addition & 1 deletion imap_tools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
from .utils import EmailAddress
from .errors import *

__version__ = '0.49.0'
__version__ = '0.49.1'
4 changes: 2 additions & 2 deletions imap_tools/mailbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ def uids(self, criteria: Criteria = 'ALL', charset: str = 'US-ASCII', miss_no_ui
check_command_status(fetch_result, MailboxUidsError)
result = []
for fetch_item in fetch_result[1]:
fetch_item: AnyStr
uid_match = re.search(UID_PATTERN, decode_value(fetch_item))
# fetch_item: AnyStr # todo uncomment after drop 3.5
uid_match = re.search(UID_PATTERN, decode_value(fetch_item)) # noqa
if uid_match:
result.append(uid_match.group('uid'))
elif not miss_no_uid:
Expand Down
3 changes: 1 addition & 2 deletions imap_tools/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ def __init__(
all: Optional[bool] = None, # noqa
uid: Optional[Union[str, Iterable[str], UidRange]] = None,
header: Optional[Header] = None,
gmail_label: Optional[Union[str, List[str]]] = None,
):
gmail_label: Optional[Union[str, List[str]]] = None): # todo newline after drop 3.5
self.converted_strings = converted_strings
for val in converted_strings:
if not any(isinstance(val, t) for t in (str, UserString)):
Expand Down

0 comments on commit 4733809

Please sign in to comment.