Skip to content

Commit

Permalink
call self._consume_empty_lines()
Browse files Browse the repository at this point in the history
  • Loading branch information
stroeder committed Jul 17, 2016
1 parent ad88a80 commit 854c5d8
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 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.92 2016/02/29 22:51:36 stroeder Exp $
$Id: ldif.py,v 1.93 2016/07/17 16:06:19 stroeder Exp $
Python compability note:
Tested with Python 2.0+, but should work with Python 1.5.2+.
Expand Down Expand Up @@ -510,10 +510,8 @@ def parse_change_records(self):
while k!=None:
k,v = next_key_and_value()

# Consume empty separation line
k,v = next_key_and_value()
while k is None and v is None:
k,v = next_key_and_value()
# Consume empty separator line(s)
k,v = self._consume_empty_lines()

# Increment record counters
try:
Expand Down

0 comments on commit 854c5d8

Please sign in to comment.