components/python/ldappool/patches/python-3-exception.patch
changeset 3998 5bd484384122
equal deleted inserted replaced
3997:0ca3f3d6c919 3998:5bd484384122
       
     1 This in-house patch addresses a Python 3 compatibility issue. An
       
     2 upstream bug will be raised and the patch submitted there.
       
     3 
       
     4 --- ldappool-1.0/ldappool/__init__.py.orig	2012-02-27 13:58:47.000000000 -0800
       
     5 +++ ldappool-1.0/ldappool/__init__.py	2015-02-23 20:49:04.353136753 -0800
       
     6 @@ -211,7 +211,7 @@ class ConnectionManager(object):
       
     7                  conn.timeout = self.timeout
       
     8                  self._bind(conn, bind, passwd)
       
     9                  connected = True
       
    10 -            except ldap.LDAPError, exc:
       
    11 +            except ldap.LDAPError as exc:
       
    12                  time.sleep(self.retry_delay)
       
    13                  tries += 1
       
    14