VcamX added a comment.
@XZise I agree with you.
I think @Legoktm's patch could fix `InsecurePlatformWarning`. But it also emits
two new `DeprecationWarning`:
/Users/VcamX/Documents/workspace/core/env/lib/python2.6/site-packages/cryptography/__init__.py:25:
DeprecationWarning: Python 2.6 is no longer supported by the Python core team,
please upgrade your Python.
DeprecationWarning
WARNING:
/Users/VcamX/Documents/workspace/core/env/lib/python2.6/site-packages/requests/packages/urllib3/contrib/pyopenssl.py:198:
DeprecationWarning: unicode for buf is no longer accepted, use bytes
return self.connection.send(data)
The cryptography's deprecation warning could be depressed by using its 0.8.2
version (the latest is 0.9.3) which doesn't warn that we're using 2.6. But I
don't think it's a good solution. It has many changes in its latest version:
CHANGELOG <https://github.com/pyca/cryptography/blob/master/CHANGELOG.rst>
I think the second deprecation warnnig is caused by sending unicode data:
https://github.com/pyca/pyopenssl/blob/master/OpenSSL/SSL.py#L1261,
https://github.com/pyca/pyopenssl/blob/master/OpenSSL/_util.py#L107
We may encode data using utf-8 by ourselves in `_http_process` of
`comms/http.py`. This is unconfirmed. I'm working on it.
TASK DETAIL
https://phabricator.wikimedia.org/T103769
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: VcamX
Cc: Legoktm, pywikibot-bugs-list, jayvdb, Aklapper, gerritbot, XZise, Malyacko,
P.Copp
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs