forked from antong/ldaptor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
a small bug in the LDAPExtendedRequest constructor was making the LDAPStartTLSRequest constructor fail
- Loading branch information
Adam Goodman
committed
Jun 21, 2011
1 parent
1f8ab6d
commit 9c6facc
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1180,14 +1180,14 @@ def fromBER(klass, tag, content, berdecoder=None): | |
return r | ||
fromBER = classmethod(fromBER) | ||
|
||
def __init__(self, requestName, requestValue=None, | ||
def __init__(self, requestName=None, requestValue=None, | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
akgood
Owner
|
||
tag=None): | ||
LDAPProtocolRequest.__init__(self) | ||
BERSequence.__init__(self, [], tag=tag) | ||
assert requestName is not None | ||
assert isinstance(requestName, basestring) | ||
self.requestName=requestName | ||
assert isinstance(requestValue, basestring) | ||
assert requestValue is None or isinstance(requestValue, basestring) | ||
self.requestValue=requestValue | ||
|
||
def __str__(self): | ||
|
Is this change intentional? Three lines below, there is "assert requestName is not None".