Skip to content

Commit 094624a

Browse files
committed
Fix urlfetch on Python 2.7
Signed-off-by: Christian Heimes <cheimes@redhat.com>
1 parent 725c623 commit 094624a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Lib/ldap/schema/subentry.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -456,10 +456,9 @@ def urlfetch(uri,trace_level=0):
456456
import ldapurl
457457
ldap_url = ldapurl.LDAPUrl(uri)
458458

459-
# This is an internal function; don't enable bytes_mode.
460-
l=ldap.initialize(ldap_url.initializeUrl(),trace_level,bytes_mode=False)
459+
l=ldap.initialize(ldap_url.initializeUrl(),trace_level)
461460
l.protocol_version = ldap.VERSION3
462-
l.simple_bind_s(ldap_url.who or '', ldap_url.cred or '')
461+
l.simple_bind_s(ldap_url.who or u'', ldap_url.cred or u'')
463462
subschemasubentry_dn = l.search_subschemasubentry_s(ldap_url.dn)
464463
if subschemasubentry_dn is None:
465464
s_temp = None

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy