Commit afec1809 authored by Nicolas Dumazet's avatar Nicolas Dumazet

unbreak code if first chunk is bigger than size_lines


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35048 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8c4d891d
...@@ -389,7 +389,9 @@ class Signature(Folder, SyncCode, File): ...@@ -389,7 +389,9 @@ class Signature(Folder, SyncCode, File):
chunk = list() chunk = list()
chunk.append(self.partial_xml.data) chunk.append(self.partial_xml.data)
size = chunk[0].count('\n') size = chunk[0].count('\n')
current = next = self.partial_xml.next
current = self.partial_xml
next = current.next
while size < size_lines and next is not None: while size < size_lines and next is not None:
current = next current = next
size += current.data.count('\n') size += current.data.count('\n')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment