Skip to content

Commit 58dbe07

Browse files
committed
Merge branch 'data_chunk3' of ssh://github.com/jsbucy/aiosmtpd into data_chunk3
2 parents ea70fb1 + b71377d commit 58dbe07

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

aiosmtpd/smtp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1408,7 +1408,7 @@ async def smtp_RSET(self, arg: str):
14081408
await self.push('250 OK' if status is MISSING else status)
14091409

14101410
# -> err, decoded data
1411-
def _decode_line(self, data : bytes
1411+
def _decode_line(self, data: bytes
14121412
) -> Tuple[Union[_Missing, bytes], Optional[str]]:
14131413
if not self._decode_data:
14141414
return MISSING, None

aiosmtpd/testing/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def __init__(self):
6363

6464
async def handle_DATA_CHUNK(
6565
self, server: SMTP, session: Session, envelope: Envelope,
66-
data : bytes, text : Optional[str], last : bool
66+
data: bytes, text: Optional[str], last: bool
6767
) -> Optional[str]:
6868
assert bool(data)
6969
if text is not None:

aiosmtpd/tests/test_smtp.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,7 @@ def test_empty_email(self, temp_event_loop, transport_resp, get_protocol):
463463
assert len(handler.box) == 1
464464
assert handler.box[0].content == b""
465465

466+
466467
@pytest.mark.usefixtures("plain_controller")
467468
@controller_data(
468469
decode_data=True,

0 commit comments

Comments
 (0)