Skip to content

Commit

Permalink
tolerate missing dash
Browse files Browse the repository at this point in the history
  • Loading branch information
stroeder committed Jul 17, 2016
1 parent 0c7977c commit fa991f9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Lib/ldif.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
See http://www.python-ldap.org/ for details.
$Id: ldif.py,v 1.95 2016/07/17 17:43:04 stroeder Exp $
$Id: ldif.py,v 1.96 2016/07/17 19:30:44 stroeder Exp $
Python compability note:
Tested with Python 2.0+, but should work with Python 1.5.2+.
Expand Down Expand Up @@ -497,7 +497,10 @@ def parse_change_records(self):
# we now have the attribute name to be modified
modattr = v
modvalues = []
k,v = next_key_and_value()
try:
k,v = next_key_and_value()
except EOFError:
k,v = None,None
while k==modattr:
modvalues.append(v)
k,v = next_key_and_value()
Expand Down

0 comments on commit fa991f9

Please sign in to comment.