Skip to content

Commit 3484d57

Browse files
authored
Remove Python 2 syntax (python-ldap#383)
python-ldap#383
1 parent 4fc9038 commit 3484d57

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+114
-184
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,6 @@ PKG-INFO
2121

2222
# generated in the sample workflow
2323
/__venv__/
24+
25+
# test dirs
26+
python-ldap-test-*

Demo/Lib/ldap/async/deltree.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from __future__ import print_function
2-
31
import ldap,ldap.async
42

53
class DeleteLeafs(ldap.async.AsyncSearchHandler):

Demo/Lib/ldapurl/urlsearch.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
44
No output of LDAP data is produced except trace output.
55
"""
6-
from __future__ import print_function
76
import sys,getpass,ldap,ldapurl
87

98
try:

Demo/initialize.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
ldaps://localhost:1391 (LDAP over SSL)
88
ldapi://%2ftmp%2fopenldap2 (domain socket /tmp/openldap2)
99
"""
10-
from __future__ import print_function
1110

1211
import sys,os,ldap
1312

Demo/ldapcontrols.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from __future__ import print_function
21
import ldap,ldapurl,pprint
32

43
from ldap.controls import LDAPControl,BooleanControl

Demo/ldapurl_search.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from __future__ import print_function
2-
31
import sys,pprint,ldap
42

53
from ldap.ldapobject import LDAPObject

Demo/matchedvalues.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
# Matched values control: (mail=*@example.org)
2828
# dn: uid=jsmith,ou=People,dc=example,dc=com
2929
# mail: jsmith@example.org
30-
from __future__ import print_function
3130

3231
import ldap
3332
from ldap.controls import MatchedValuesControl
@@ -37,7 +36,7 @@ def print_result(search_result):
3736
print("dn: %s" % search_result[n][0])
3837
for attr in search_result[n][1].keys():
3938
for i in range(len(search_result[n][1][attr])):
40-
print("%s: %s" % (attr, search_result[n][1][attr][i]))
39+
print("{}: {}".format(attr, search_result[n][1][attr][i]))
4140
print
4241

4342

Demo/options.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from __future__ import print_function
2-
31
import ldap
42

53
host="localhost:1390"

Demo/page_control.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
from __future__ import print_function
3-
41
url = "ldap://localhost:1390"
52
base = "dc=stroeder,dc=de"
63
search_flt = r'(objectClass=*)'

Demo/paged_search_ext_s.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from __future__ import print_function
21
url = "ldap://localhost:1390/"
32
base = "dc=stroeder,dc=de"
43
search_flt = r'(objectClass=*)'

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