Skip to content

Commit 35f8212

Browse files
committed
fix #45
1 parent 339c516 commit 35f8212

File tree

6 files changed

+679
-55
lines changed

6 files changed

+679
-55
lines changed

LICENSE

Lines changed: 674 additions & 0 deletions
Large diffs are not rendered by default.

LICENSE.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

envelope/address.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
def _getaddresses(*args):
1616
# NOTE Python finally changed the old way of parsing wrong addresses.
1717
# We might start using strict=True (default) in the future.
18-
if sys.version_info <= (3, 11):
18+
if sys.version_info < (3, 12, 3):
1919
return getaddresses(*args)
2020
return getaddresses(*args, strict=False)
2121

@@ -24,7 +24,7 @@ def _parseaddr(*args):
2424
# NOTE Python finally changed the old way of parsing wrong addresses.
2525
# We might start using strict=True (default) in the future.
2626
# README should reflect that.
27-
if sys.version_info <= (3, 11):
27+
if sys.version_info < (3, 12, 3):
2828
return parseaddr(*args)
2929
return parseaddr(*args, strict=False)
3030

@@ -187,7 +187,7 @@ def remedy(s):
187187

188188
"""
189189
What happens when the string have more addresses?
190-
It also needs to get the address from string like "person@example.com, <person@example.com>" so we need to
190+
It also needs to get the address from string like "person@example.com, <person@example.com>" so we need to
191191
take care of the comma and semicolon as well.
192192
"""
193193
if s.group(1).strip() == s.group(2).strip():

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ build-backend = "poetry.core.masonry.api"
44

55
[tool.poetry]
66
name = "envelope"
7-
version = "2.1.0"
7+
version = "2.1.1"
88
description = "Insert a message and attachments and send e-mail / sign / encrypt contents by a single line."
99
authors = ["Edvard Rejthar <edvard.rejthar@nic.cz>"]
10-
license = "GNU GPLv3"
10+
license = "GPL-3.0-or-later"
1111
homepage = "https://github.com/CZ-NIC/envelope"
1212
readme = "README.md"
1313
classifiers = ["Programming Language :: Python :: 3"]

setup.cfg

Lines changed: 0 additions & 3 deletions
This file was deleted.

setup.py

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)