Skip to content

Commit

Permalink
cosmetic line wrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
stroeder committed Jul 7, 2015
1 parent 44439cc commit 14506e9
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Lib/ldap/controls/vlv.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
See http://www.python-ldap.org/ for project details.
$Id: vlv.py,v 1.2 2015/06/22 17:55:01 stroeder Exp $
$Id: vlv.py,v 1.3 2015/07/07 12:46:31 stroeder Exp $
"""

__all__ = [
Expand Down Expand Up @@ -45,6 +45,7 @@ class VirtualListViewRequestType(univ.Sequence):
namedtype.NamedType('target', TargetType()),
namedtype.OptionalNamedType('contextID', univ.OctetString()))


class VLVRequestControl(RequestControl):
controlType = '2.16.840.1.113730.3.4.9'

Expand All @@ -59,9 +60,11 @@ def __init__(
context_id=None,
):
RequestControl.__init__(self,self.controlType,criticality)
assert (offset is not None and content_count is not None) or greater_than_or_equal, 'offset and ' \
'content_count must be set together or greater_than_or_equal must be ' \
'used'
assert (offset is not None and content_count is not None) or \
greater_than_or_equal, \
ValueError(
'offset and content_count must be set together or greater_than_or_equal must be used'
)
self.before_count = before_count
self.after_count = after_count
self.offset = offset
Expand Down

0 comments on commit 14506e9

Please sign in to comment.