Skip to content

Commit 7248568

Browse files
author
stroeder
committed
Stripped trailing white-spaces
1 parent 036700d commit 7248568

15 files changed

Lines changed: 60 additions & 60 deletions

File tree

Lib/ldap/async.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
See http://www.python-ldap.org/ for details.
55
6-
\$Id: async.py,v 1.33 2013/09/21 03:55:38 stroeder Exp $
6+
\$Id: async.py,v 1.34 2015/06/06 09:21:37 stroeder Exp $
77
88
Python compability note:
99
Tested on Python 2.0+ but should run on Python 1.5.x.
@@ -103,7 +103,7 @@ def preProcessing(self):
103103

104104
def afterFirstResult(self):
105105
"""
106-
Do anything you want right after successfully receiving but before
106+
Do anything you want right after successfully receiving but before
107107
processing first result
108108
"""
109109

Lib/ldap/controls/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
See http://www.python-ldap.org/ for details.
66
7-
$Id: __init__.py,v 1.9 2013/05/29 20:27:32 stroeder Exp $
7+
$Id: __init__.py,v 1.10 2015/06/06 09:21:38 stroeder Exp $
88
99
Description:
1010
The ldap.controls module provides LDAPControl classes.
@@ -45,7 +45,7 @@
4545
class RequestControl:
4646
"""
4747
Base class for all request controls
48-
48+
4949
controlType
5050
OID as string of the LDAPv3 extended request control
5151
criticality

Lib/ldap/controls/libldap.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
See http://www.python-ldap.org/ for details.
77
8-
$Id: libldap.py,v 1.2 2011/07/23 07:42:04 stroeder Exp $
8+
$Id: libldap.py,v 1.3 2015/06/06 09:21:38 stroeder Exp $
99
"""
1010

1111
import _ldap,ldap
@@ -20,8 +20,8 @@ class AssertionControl(RequestControl):
2020
LDAP filter string specifying which assertions have to match
2121
so that the server processes the operation
2222
"""
23-
24-
controlType = ldap.CONTROL_ASSERT
23+
24+
controlType = ldap.CONTROL_ASSERT
2525
def __init__(self,criticality=True,filterstr='(objectClass=*)'):
2626
self.criticality = criticality
2727
self.filterstr = filterstr
@@ -40,9 +40,9 @@ class MatchedValuesControl(RequestControl):
4040
LDAP filter string specifying which attribute values
4141
should be returned
4242
"""
43-
43+
4444
controlType = ldap.CONTROL_VALUESRETURNFILTER
45-
45+
4646
def __init__(self,criticality=False,filterstr='(objectClass=*)'):
4747
self.criticality = criticality
4848
self.filterstr = filterstr

Lib/ldap/controls/ppolicy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
See http://www.python-ldap.org/ for project details.
77
8-
$Id: ppolicy.py,v 1.3 2011/11/27 15:26:06 stroeder Exp $
8+
$Id: ppolicy.py,v 1.4 2015/06/06 09:21:38 stroeder Exp $
99
"""
1010

1111
__all__ = [
@@ -91,6 +91,6 @@ def decodeControlValue(self,encodedControlValue):
9191
self.error = None
9292
else:
9393
self.error = int(error)
94-
94+
9595

9696
KNOWN_RESPONSE_CONTROLS[PasswordPolicyControl.controlType] = PasswordPolicyControl

Lib/ldap/controls/simple.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
See http://www.python-ldap.org/ for details.
66
7-
$Id: simple.py,v 1.9 2012/08/09 07:01:20 stroeder Exp $
7+
$Id: simple.py,v 1.10 2015/06/06 09:21:38 stroeder Exp $
88
"""
99

1010
import struct,ldap
@@ -34,7 +34,7 @@ def encodeControlValue(self):
3434
class OctetStringInteger(LDAPControl):
3535
"""
3636
Base class with controlValue being unsigend integer values
37-
37+
3838
integerValue
3939
Integer to be sent as OctetString
4040
"""
@@ -49,7 +49,7 @@ def encodeControlValue(self):
4949

5050
def decodeControlValue(self,encodedControlValue):
5151
self.integerValue = struct.unpack('!Q',encodedControlValue)[0]
52-
52+
5353

5454
class BooleanControl(LDAPControl):
5555
"""
@@ -100,7 +100,7 @@ def __init__(self,criticality=False):
100100
class ProxyAuthzControl(RequestControl):
101101
"""
102102
Proxy Authorization Control
103-
103+
104104
authzId
105105
string containing the authorization ID indicating the identity
106106
on behalf which the server should process the request
@@ -123,9 +123,9 @@ def __init__(self,criticality):
123123
class AuthorizationIdentityResponseControl(ResponseControl):
124124
"""
125125
Authorization Identity Request and Response Controls
126-
126+
127127
Class attributes:
128-
128+
129129
authzId
130130
decoded authorization identity
131131
"""

Lib/ldap/dn.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
See http://www.python-ldap.org/ for details.
55
6-
\$Id: dn.py,v 1.12 2014/05/20 20:15:15 stroeder Exp $
6+
\$Id: dn.py,v 1.13 2015/06/06 09:21:37 stroeder Exp $
77
88
Compability:
99
- Tested with Python 2.0+
@@ -31,7 +31,7 @@ def escape_dn_chars(s):
3131
s = s.replace('>' ,'\\>')
3232
s = s.replace(';' ,'\\;')
3333
s = s.replace('=' ,'\\=')
34-
s = s.replace('\000' ,'\\\000')
34+
s = s.replace('\000' ,'\\\000')
3535
if s[0]=='#' or s[0]==' ':
3636
s = ''.join(('\\',s))
3737
if s[-1]==' ':
@@ -43,7 +43,7 @@ def str2dn(dn,flags=0):
4343
"""
4444
This function takes a DN as string as parameter and returns
4545
a decomposed DN. It's the inverse to dn2str().
46-
46+
4747
flags describes the format of the dn
4848
4949
See also the OpenLDAP man-page ldap_str2dn(3)
@@ -69,7 +69,7 @@ def dn2str(dn):
6969
def explode_dn(dn,notypes=0,flags=0):
7070
"""
7171
explode_dn(dn [, notypes=0]) -> list
72-
72+
7373
This function takes a DN and breaks it up into its component parts.
7474
The notypes parameter is used to specify that only the component's
7575
attribute values be returned and not the attribute types.
@@ -95,7 +95,7 @@ def explode_dn(dn,notypes=0,flags=0):
9595
def explode_rdn(rdn,notypes=0,flags=0):
9696
"""
9797
explode_rdn(rdn [, notypes=0]) -> list
98-
98+
9999
This function takes a RDN and breaks it up into its component parts
100100
if it is a multi-valued RDN.
101101
The notypes parameter is used to specify that only the component's

Lib/ldap/filter.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
See http://www.python-ldap.org/ for details.
55
6-
\$Id: filter.py,v 1.9 2011/07/22 07:20:53 stroeder Exp $
6+
\$Id: filter.py,v 1.10 2015/06/06 09:21:37 stroeder Exp $
77
88
Compability:
99
- Tested with Python 2.0+
@@ -16,7 +16,7 @@ def escape_filter_chars(assertion_value,escape_mode=0):
1616
"""
1717
Replace all special characters found in assertion_value
1818
by quoted notation.
19-
19+
2020
escape_mode
2121
If 0 only special chars mentioned in RFC 4515 are escaped.
2222
If 1 all NON-ASCII chars are escaped.
@@ -41,7 +41,7 @@ def escape_filter_chars(assertion_value,escape_mode=0):
4141
s = s.replace(r'(', r'\28')
4242
s = s.replace(r')', r'\29')
4343
s = s.replace('\x00', r'\00')
44-
return s
44+
return s
4545

4646

4747
def filter_format(filter_template,assertion_values):

Lib/ldap/functions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
See http://www.python-ldap.org/ for details.
55
6-
\$Id: functions.py,v 1.30 2014/05/20 20:44:28 stroeder Exp $
6+
\$Id: functions.py,v 1.31 2015/06/06 09:21:37 stroeder Exp $
77
88
Compability:
99
- Tested with Python 2.0+ but should work with Python 1.5.x
@@ -135,7 +135,7 @@ def set_option(option,invalue):
135135

136136
def escape_str(escape_func,s,*args):
137137
"""
138-
Applies escape_func() to all items of `args' and returns a string based
138+
Applies escape_func() to all items of `args' and returns a string based
139139
on format string `s'.
140140
"""
141141
escape_args = map(escape_func,args)

Lib/ldap/ldapobject.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
See http://www.python-ldap.org/ for details.
55
6-
\$Id: ldapobject.py,v 1.144 2015/05/02 16:19:23 stroeder Exp $
6+
\$Id: ldapobject.py,v 1.145 2015/06/06 09:21:38 stroeder Exp $
77
88
Compability:
99
- Tested with Python 2.0+ but should work with Python 1.5.x
@@ -139,7 +139,7 @@ def __getattr__(self,name):
139139
def fileno():
140140
"""
141141
Returns file description of LDAP connection.
142-
142+
143143
Just a convenience wrapper for LDAPObject.get_option(ldap.OPT_DESC)
144144
"""
145145
return self.get_option(ldap.OPT_DESC)
@@ -662,7 +662,7 @@ def search_subschemasubentry_s(self,dn=''):
662662
def read_s(self,dn,filterstr=None,attrlist=None,serverctrls=None,clientctrls=None,timeout=-1):
663663
"""
664664
Reads and returns a single entry specified by `dn'.
665-
665+
666666
Other attributes just like those passed to `search_ext_s()'
667667
"""
668668
r = self.search_ext_s(

Lib/ldap/logger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class logging_file_class:
99

1010
def __init__(self,logging_level):
1111
self._logging_level = logging_level
12-
12+
1313
def write(self,msg):
1414
logging.log(self._logging_level,msg[:-1])
1515

0 commit comments

Comments
 (0)