Fix TypeError: mappingproxy object does not support item assignment

This commit is contained in:
Kolan Sh 2020-12-28 01:45:35 +03:00
parent 89401f40e1
commit 7573ae080d
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ def IMAP_starttls(self, keyfile=None, certfile=None,cert_reqs=ssl.CERT_NONE,ca_c
self.sock = ssl.wrap_socket(self.sock, keyfile, certfile,cert_reqs=cert_reqs,ca_certs=ca_certs)
self.file = self.sock.makefile('rb')
imaplib.IMAP4.__dict__['starttls']=IMAP_starttls
setattr(imaplib, 'starttls', IMAP_starttls)
imaplib.Commands['STARTTLS']=('NONAUTH',)
try: