You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
351 B
15 lines
351 B
import six |
|
from six.moves import http_client |
|
|
|
|
|
def fix_HTTPMessage(): |
|
""" |
|
Python 2 uses a deprecated method signature and doesn't provide the |
|
forward compatibility. |
|
Add it. |
|
""" |
|
if six.PY3: |
|
return |
|
|
|
http_client.HTTPMessage.get_content_type = http_client.HTTPMessage.gettype |
|
http_client.HTTPMessage.get_param = http_client.HTTPMessage.getparam
|
|
|