mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
Fix urllib3's SSL warning under Python <= 2.7.2 // Resolve #39
This commit is contained in:
@ -8,6 +8,7 @@ Release History
|
||||
via USB programmer (USBasp) to
|
||||
`atmelavr <http://docs.platformio.ikravets.com/en/latest/platforms/atmelavr.html>`_
|
||||
MCUs (`issue #35 <https://github.com/ivankravets/platformio/issues/35>`_)
|
||||
* Fixed urllib3's SSL warning under Python <= 2.7.2 (`issue #39 <https://github.com/ivankravets/platformio/issues/39>`_)
|
||||
|
||||
0.9.2 (2014-12-10)
|
||||
------------------
|
||||
|
@ -120,6 +120,7 @@ def get_api_result(path, params=None, data=None):
|
||||
r = None
|
||||
|
||||
try:
|
||||
requests.packages.urllib3.disable_warnings()
|
||||
headers = {"User-Agent": "PlatformIO/%s %s" % (
|
||||
__version__, requests.utils.default_user_agent())}
|
||||
# if packages - redirect to SF
|
||||
|
Reference in New Issue
Block a user