summaryrefslogtreecommitdiffstats
path: root/ipapython
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2011-04-14 13:00:36 +0200
committerRob Crittenden <rcritten@redhat.com>2011-04-20 14:36:32 -0400
commitf8cb129b93d5becb5dc2cd358f34ee015abf8d72 (patch)
treeb5d9fd1e30c5e5916cd2a4eff088d33a11d6d02d /ipapython
parentfc7c1cbb6a3e2cdec4d1f8b0860c040ac3204e90 (diff)
downloadfreeipa-f8cb129b93d5becb5dc2cd358f34ee015abf8d72.tar.gz
freeipa-f8cb129b93d5becb5dc2cd358f34ee015abf8d72.tar.xz
freeipa-f8cb129b93d5becb5dc2cd358f34ee015abf8d72.zip
Remove unused classes.
Removed NSPRConnection and NSPRHTTP from ipapython.nsslib, as they are not used anywhere in FreeIPA.
Diffstat (limited to 'ipapython')
-rw-r--r--ipapython/nsslib.py23
1 files changed, 0 insertions, 23 deletions
diff --git a/ipapython/nsslib.py b/ipapython/nsslib.py
index 1de00243d..e347d2179 100644
--- a/ipapython/nsslib.py
+++ b/ipapython/nsslib.py
@@ -280,29 +280,6 @@ class NSSHTTPS(httplib.HTTP):
port = None
self._setup(self._connection_class(host, port, strict, dbdir=dbdir))
-class NSPRConnection(httplib.HTTPConnection, NSSAddressFamilyFallback):
- default_port = httplib.HTTPConnection.default_port
-
- def __init__(self, host, port=None, strict=None, family=socket.AF_UNSPEC):
- httplib.HTTPConnection.__init__(self, host, port, strict)
- NSSAddressFamilyFallback.__init__(self, family)
-
- logging.debug('%s init %s', self.__class__.__name__, host)
- self._create_socket()
-
- def _create_socket(self):
- super(NSPRConnection, self)._create_socket()
- self.sock.set_hostname(self.host)
-
- def connect(self):
- self.connect_socket(self.host, self.port)
-
-class NSPRHTTP(httplib.HTTP):
- _http_vsn = 11
- _http_vsn_str = 'HTTP/1.1'
-
- _connection_class = NSPRConnection
-
#------------------------------------------------------------------------------
if __name__ == "__main__":