python 2.7 -3 ./kolab-cli.py -d 9 lm
DeprecationWarning: in 3.x, rfc822 has been removed in favor of the email package
Differential D3457
[Python 3]rfc822 module has been removed ghane on Mar 14 2022, 12:49 PM. Authored by Tags None Referenced Files
Subscribers
Details
python 2.7 -3 ./kolab-cli.py -d 9 lm DeprecationWarning: in 3.x, rfc822 has been removed in favor of the email package
Diff Detail
Event TimelineComment Actions The only rfc822 function used below is rfc822.parsedate(); according to https://docs.python.org/3.10/library/email.utils.html, its email counterpart is not not email.parsedate() but email.utils.parsedate(). Since the email.utils module is already available in Python 2.7, I suggest the following:
Comment Actions I'll just change line 22 import email.utils as rfc822 this keeps the history and intention of the code alive. |