Skip to content

Commit

Permalink
Fix utils (not sure if someone use it...)
Browse files Browse the repository at this point in the history
  • Loading branch information
doudz committed Aug 30, 2019
1 parent 845acb4 commit 256f22e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rpc4django/utils.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import httplib

try:
# Python2
from httplib import HTTPConnection
from xmlrpclib import SafeTransport, Transport, ProtocolError
except ImportError:
# Python3
from http.client import HTTPConnection
from xmlrpc.client import SafeTransport, Transport, ProtocolError


Expand All @@ -18,7 +18,7 @@ def __init__(self):
self.cookie = None

def make_connection(self, host):
h = httplib.HTTP(host)
h = HTTPConnection(host)
return h

def request(self, host, handler, request_body, verbose=0):
Expand Down

0 comments on commit 256f22e

Please sign in to comment.