Skip to content

Trim trailing whitespace throughout project #118

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ Issue description:



Steps to reproduce:
Steps to reproduce:



Operating system:
Operating system:

Python version:
Python version:

python-ldap version:
python-ldap version:
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

# Auto-generated
.*.swp
*.pyc
Expand Down
2 changes: 1 addition & 1 deletion Build/build-openbsd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ HOMEPAGE= https://www.python-ldap.org/
FAKE= Yes
CONFIGURE_STYLE= gnu
SEPARATE_BUILD= Yes
EXTRACT_ONLY=
EXTRACT_ONLY=

CONFIGURE_ARGS+= --with-ldap=${LOCALBASE}

Expand Down
2 changes: 1 addition & 1 deletion Build/build-openbsd/pkg/DESCR
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
This Python library provides access to the LDAP (Lightweight Directory Access
This Python library provides access to the LDAP (Lightweight Directory Access
Protocol) RFC1823 C interface.
4 changes: 2 additions & 2 deletions Build/setup.cfg.mingw
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ defines = WIN32
library_dirs = C:/msys/1.0/home/mcicogni/openldap-mingw-build-4/openldap-2.2.18/libraries/libldap_r/.libs C:/msys/1.0/home/mcicogni/openldap-mingw-build-4/openldap-2.2.18/libraries/liblber/.libs C:\msys\1.0\home\mcicogni\openldap-mingw-build-4\openssl-0.9.7e
include_dirs = C:/msys/1.0/home/mcicogni/openldap-mingw-build-4/openldap-2.2.18/include

extra_compile_args =
extra_objects =
extra_compile_args =
extra_objects =

libs = ldap_r lber ssl crypto ws2_32 gdi32

Expand Down
2 changes: 1 addition & 1 deletion Build/setup.cfg.suse-linux
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
library_dirs = /usr/lib/sasl2
include_dirs = /usr/include/sasl

extra_compile_args =
extra_compile_args =
extra_objects =

# Example for full-featured SuSE build:
Expand Down
2 changes: 1 addition & 1 deletion Demo/Lib/ldap/async/deltree.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
class DeleteLeafs(ldap.async.AsyncSearchHandler):
"""
Class for deleting entries which are results of a search.

DNs of Non-leaf entries are collected in DeleteLeafs.nonLeafEntries.
"""
_entryResultTypes = ldap.async._entryResultTypes
Expand Down
1 change: 0 additions & 1 deletion Demo/Lib/ldif/ldifcopy.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,3 @@
process_url_schemes=['file','ftp','http']
)
ldif_collector.parse()

1 change: 0 additions & 1 deletion Demo/matchedvalues.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,3 @@ def print_result(search_result):
res = ld.search_ext_s(base, scope, filter, attrlist = ['mail'], serverctrls = [mv])
print("Matched values control: %s" % control_filter)
print_result(res)

4 changes: 0 additions & 4 deletions Demo/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,3 @@
#print("time limit:",l.get_option(ldap.OPT_TIMELIMIT))
print("Binding...")
l.simple_bind_s("","")




1 change: 0 additions & 1 deletion Demo/pyasn1/sessiontrack.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,3 @@
ldap_url.attrs or ['*'],
serverctrls=[st_ctrl]
)

4 changes: 2 additions & 2 deletions Demo/pyasn1/syncrepl.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ def syncrepl_present(self,uuids,refreshDeletes=False):
# If we have not been given any UUID values,
# then we have recieved all the present controls...
if uuids is None:
# We only do things if refreshDeletes is false as the syncrepl
# extension will call syncrepl_delete instead when it detects a
# We only do things if refreshDeletes is false as the syncrepl
# extension will call syncrepl_delete instead when it detects a
# delete notice
if refreshDeletes is False:
deletedEntries = [
Expand Down
2 changes: 1 addition & 1 deletion Demo/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
attr_type_filter = [
('no_user_mod',[0]),
('usage',range(2)),
]
]
)
except KeyError as e:
print('***KeyError',str(e))
Expand Down
1 change: 0 additions & 1 deletion Demo/schema_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,3 @@ def HTMLSchemaTree(schema,se_class,se_tree,se_oid,level):

print('\n*** Attribute types tree ***\n')
PrintSchemaTree(schema,ldap.schema.AttributeType,at_tree,'_',0)

5 changes: 2 additions & 3 deletions Demo/simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,10 @@
#

res = l.search_s(
"ou=CSEE, o=UQ, c=AU",
_ldap.SCOPE_SUBTREE,
"ou=CSEE, o=UQ, c=AU",
_ldap.SCOPE_SUBTREE,
"objectclass=*",
)
print(res)

l.unbind()

5 changes: 2 additions & 3 deletions Demo/simplebrowse.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
# We're not interested in attributes at this stage, so
# we specify [] as the list of attribute names to retreive.
#
for name,attrs in l.search_s(dn, ldap.SCOPE_ONELEVEL,
for name,attrs in l.search_s(dn, ldap.SCOPE_ONELEVEL,
"objectclass=*", []):
#-- shorten resulting dns for output brevity
if name.startswith(dn+", "):
Expand Down Expand Up @@ -100,7 +100,7 @@
print(" %-24s" % name)
for k,vals in attrs.items():
for v in vals:
if len(v) > 200:
if len(v) > 200:
v = `v[:200]` + \
("... (%d bytes)" % len(v))
else:
Expand All @@ -125,4 +125,3 @@

except:
print_exc()

1 change: 0 additions & 1 deletion Doc/installing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -253,4 +253,3 @@ Debugging symbols are preserved with compile option ``-g``.
extra_objects =

libs = ldap_r lber sasl2 ssl crypto

1 change: 0 additions & 1 deletion Doc/reference/ldap-async.rst
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,3 @@ for writing search results as LDIF to stdout. ::
s.endResultBreak-s.beginResultsDropped
)
)

1 change: 0 additions & 1 deletion Doc/reference/ldap-dn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,3 @@ Splitting a LDAPv3 DN with a multi-valued RDN into its AVA parts:

>>> ldap.dn.str2dn('cn=John Doe+mail=john.doe@example.com,dc=example,dc=com')
[[('cn', 'John Doe', 1), ('mail', 'john.doe@example.com', 1)], [('dc', 'example', 1)], [('dc', 'com', 1)]]

1 change: 0 additions & 1 deletion Doc/reference/ldap-extop.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,3 @@ This requires :py:mod:`pyasn1` and :py:mod:`pyasn1_modules` to be installed.

.. autoclass:: ldap.extop.dds.RefreshResponse
:members:

1 change: 0 additions & 1 deletion Doc/reference/ldap-filter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,3 @@ The :mod:`ldap.filter` module defines the following functions:
whole filter string.

.. % -> string

3 changes: 1 addition & 2 deletions Doc/reference/ldap-sasl.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Classes

.. autoclass:: ldap.sasl.sasl
:members:

This class is used with :py:meth:`ldap.LDAPObject.sasl_interactive_bind_s()`.


Expand Down Expand Up @@ -82,4 +82,3 @@ and sends a SASL external bind request.
ldap_conn.sasl_non_interactive_bind_s('EXTERNAL')
# Find out the SASL Authorization Identity
print ldap_conn.whoami_s()

1 change: 0 additions & 1 deletion Doc/reference/ldap-syncrepl.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,3 @@ This module defines the following classes:

.. autoclass:: ldap.syncrepl.SyncreplConsumer
:members:

3 changes: 1 addition & 2 deletions Doc/reference/ldap.rst
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,7 @@ and wait for and return with the server's result, or with
.. py:method:: LDAPObject.sasl_interactive_bind_s(who, auth[, serverctrls=None [, clientctrls=None [, sasl_flags=ldap.SASL_QUIET]]]) -> None

This call is used to bind to the directory with a SASL bind request.

*auth* is an :py:class:`ldap.sasl.sasl()` instance.

*serverctrls* and *clientctrls* like described in section :ref:`ldap-controls`.
Expand Down Expand Up @@ -1196,4 +1196,3 @@ subtree search.
>>> for dn,entry in r:
>>> print('Processing',repr(dn))
>>> handle_ldap_entry(entry)

1 change: 0 additions & 1 deletion Doc/reference/ldapurl.rst
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,3 @@ with \module{ldapurl} module.
>>> ldap_url = ldapurl.LDAPUrl(hostport='localhost:1389',dn='dc=stroeder,dc=com',attrs=['cn','mail'],who='cn=Michael,dc=stroeder,dc=com',cred='secret')
>>> ldap_url.unparse()
'ldap://localhost:1389/dc=stroeder,dc=com?cn,mail?base?(objectclass=*)?bindname=cn=Michael%2Cdc=stroeder%2Cdc=com,X-BINDPW=secret'

1 change: 0 additions & 1 deletion Doc/reference/ldif.rst
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,3 @@ with :mod:`ldif` module, skip some entries and write the result to stdout. ::

parser = MyLDIF(open("input.ldif", 'rb'), sys.stdout)
parser.parse()

1 change: 0 additions & 1 deletion Doc/sample_workflow.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

.. _sample workflow:

Sample workflow for python-ldap development
Expand Down
1 change: 0 additions & 1 deletion LICENCE
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

The python-ldap package is distributed under Python-style license.

Standard disclaimer:
Expand Down
2 changes: 1 addition & 1 deletion Lib/ldap/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from __future__ import print_function

class Constant(object):
"""Base class for a definition of an OpenLDAP constant
"""Base class for a definition of an OpenLDAP constant
"""

def __init__(self, name, optional=False, requirements=(), doc=None):
Expand Down
2 changes: 1 addition & 1 deletion Lib/ldap/controls/deref.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
"""
ldap.controls.deref - classes for
ldap.controls.deref - classes for
(see https://tools.ietf.org/html/draft-masarati-ldap-deref)

See https://www.python-ldap.org/ for project details.
Expand Down
1 change: 0 additions & 1 deletion Lib/ldapurl.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,4 +429,3 @@ def __delattr__(self,name):
pass
else:
del self.__dict__[name]

4 changes: 2 additions & 2 deletions Lib/slapdtest/certs/ca.pem
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ Certificate:
CA:TRUE
X509v3 Key Usage: critical
Certificate Sign, CRL Sign
X509v3 Subject Key Identifier:
X509v3 Subject Key Identifier:
3B:1F:32:F4:FE:57:D1:6F:49:91:55:F2:24:F1:0A:66:3B:A5:EE:D4
X509v3 Authority Key Identifier:
X509v3 Authority Key Identifier:
keyid:3B:1F:32:F4:FE:57:D1:6F:49:91:55:F2:24:F1:0A:66:3B:A5:EE:D4

Signature Algorithm: sha256WithRSAEncryption
Expand Down
4 changes: 2 additions & 2 deletions Lib/slapdtest/certs/client.pem
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ Certificate:
Digital Signature
X509v3 Extended Key Usage: critical
TLS Web Client Authentication
X509v3 Subject Key Identifier:
X509v3 Subject Key Identifier:
67:63:38:F4:B4:BC:F3:6B:BC:74:0E:7C:27:C9:BB:C2:CC:58:AC:16
X509v3 Authority Key Identifier:
X509v3 Authority Key Identifier:
keyid:3B:1F:32:F4:FE:57:D1:6F:49:91:55:F2:24:F1:0A:66:3B:A5:EE:D4

Signature Algorithm: sha256WithRSAEncryption
Expand Down
6 changes: 3 additions & 3 deletions Lib/slapdtest/certs/server.pem
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ Certificate:
Digital Signature, Key Encipherment
X509v3 Extended Key Usage: critical
TLS Web Server Authentication
X509v3 Subject Key Identifier:
X509v3 Subject Key Identifier:
1B:78:45:40:0D:50:8A:8B:3B:C1:0A:F8:3F:7A:48:7B:A6:3C:28:09
X509v3 Authority Key Identifier:
X509v3 Authority Key Identifier:
keyid:3B:1F:32:F4:FE:57:D1:6F:49:91:55:F2:24:F1:0A:66:3B:A5:EE:D4

X509v3 Subject Alternative Name:
X509v3 Subject Alternative Name:
DNS:localhost, IP Address:127.0.0.1, IP Address:0:0:0:0:0:0:0:1
Signature Algorithm: sha256WithRSAEncryption
ad:08:3f:7d:b1:09:a1:a5:6c:c3:58:80:1d:e5:33:a5:bb:c0:
Expand Down
Loading