Commit 63080f18 authored by Nicolas Dumazet's avatar Nicolas Dumazet

current cannot be None. ever.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35050 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 49cad812
......@@ -404,11 +404,8 @@ class Signature(Folder, SyncCode, File):
overflow = size - size_lines
data_list = chunk[-1].split('\n')
chunk[-1] = '\n'.join(data_list[:-overflow])
if current is not None:
current.data = '\n'.join(data_list[-overflow:])
self.partial_xml = current
else:
self.partial_xml.data = '\n'.join(data_list[-overflow:])
current.data = '\n'.join(data_list[-overflow:])
self.partial_xml = current
return ''.join(chunk)
......
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