python 2.7 -3 ./kolab-cli.py -d 9 lm
DeprecationWarning: in 3.x, rfc822 has been removed in favor of the email package
sicherha |
PyKolab Developers |
python 2.7 -3 ./kolab-cli.py -d 9 lm
DeprecationWarning: in 3.x, rfc822 has been removed in favor of the email package
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
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:
I'll just change line 22
import email.utils as rfc822
this keeps the history and intention of the code alive.