Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

coinspot.py httplib Python 3 Deprecated #18

Open
beerbotboffin opened this issue May 6, 2021 · 1 comment
Open

coinspot.py httplib Python 3 Deprecated #18

beerbotboffin opened this issue May 6, 2021 · 1 comment

Comments

@beerbotboffin
Copy link

In coinspot.py httplib has been deprecated in Python 3.

Recommend changing from:
import hmac
import hashlib
import httplib
import json
import yaml
import os
import sys
import logging
from time import time, strftime

to:
import hmac
import hashlib
try:
import httplib
except:
import http.client
import json
import yaml
import os
import sys
import logging
from time import time, strftime

Tested working in 3.6.2

@geekpete
Copy link
Owner

geekpete commented May 9, 2021

The plan was to migrate to requests library...

@romeo-delta romeo-delta mentioned this issue Jan 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants