ipapython.nsslib, ipalib.rpc: Remove code for Python 2.6 and below

IPA hasn't supported these pythons for a while now.

Reviewed-By: Tomas Babej <tbabej@redhat.com>
This commit is contained in:
Petr Viktorin authored and Tomas Babej committed 2015-10-27 17:23:25 +01:00
1 parent beb6a3236d
commit 4ddd1821b6
2 files changed
+13 -28

No files matched your search

+1 -7
View File
@@ -291,13 +291,7 @@ class NSSConnection(httplib.HTTPConnection, NSSAddressFamilyFallback):
"""
try:
# FIXME: httplib uses old-style classes so super doesn't work
# Python 2.7 changed the API for endheaders. This is an attempt
# to work across versions
(major, minor, micro, releaselevel, serial) = sys.version_info
if major == 2 and minor < 7:
httplib.HTTPConnection.endheaders(self)
else:
httplib.HTTPConnection.endheaders(self, message)
httplib.HTTPConnection.endheaders(self, message)
except NSPRError as e:
self.close()
raise e