Skip to content

Commit acdde31

Browse files
authored
Merge pull request #435 from tlsfuzzer/py39-0.7
Add testing on python 3.9 [0.7]
2 parents 5b253f7 + 026c509 commit acdde31

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ jobs:
4040
dist: xenial
4141
sudo: true
4242
env: TACKPY=false
43+
- python: 3.9
44+
dist: xenial
45+
sudo: true
46+
env: TACKPY=false
4347
- python: 2.7
4448
env: TACKPY=true
4549
- python: 3.4

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
'Programming Language :: Python :: 3.6',
4141
'Programming Language :: Python :: 3.7',
4242
'Programming Language :: Python :: 3.8',
43+
'Programming Language :: Python :: 3.9',
4344
'Topic :: Security :: Cryptography',
4445
'Topic :: Software Development :: Libraries :: Python Modules',
4546
'Topic :: System :: Networking'

tlslite/integration/imap4_tls.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,10 @@ def __init__(self, host = '', port = IMAP4_TLS_PORT,
8282

8383
IMAP4.__init__(self, host, port)
8484

85-
86-
def open(self, host = '', port = IMAP4_TLS_PORT):
85+
# the `timeout` is a new argument in python3.9, so checks with
86+
# older python versions will complain about unmatched parameters
87+
# pylint: disable=arguments-differ
88+
def open(self, host='', port=IMAP4_TLS_PORT, timeout=None):
8789
"""Setup connection to remote server on "host:port".
8890
8991
This connection will be used by the routines:
@@ -96,3 +98,4 @@ def open(self, host = '', port = IMAP4_TLS_PORT):
9698
self.sock = TLSConnection(self.sock)
9799
ClientHelper._handshake(self, self.sock)
98100
self.file = self.sock.makefile('rb')
101+
# pylint: enable=arguments-differ

0 commit comments

Comments
 (0)