Skip to content

coinspot.py httplib Python 3 Deprecated #18

@beerbotboffin

Description

@beerbotboffin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions