Commit 80341ff9 authored by Nicolas Dumazet's avatar Nicolas Dumazet

rename Pdata to current to avoid overriding type name


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35045 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2fa3077b
...@@ -390,22 +390,22 @@ class Signature(Folder, SyncCode, File): ...@@ -390,22 +390,22 @@ class Signature(Folder, SyncCode, File):
chunk.append(self.partial_xml.data) chunk.append(self.partial_xml.data)
size = chunk[0].count('\n') size = chunk[0].count('\n')
index = 0 index = 0
Pdata = next = self.partial_xml.next current = next = self.partial_xml.next
while size < size_lines: while size < size_lines:
Pdata = next current = next
size += Pdata.data.count('\n') size += current.data.count('\n')
chunk.append(Pdata.data) chunk.append(current.data)
index += 1 index += 1
next = Pdata.next next = current.next
if size == size_lines: if size == size_lines:
self.partial_xml = next self.partial_xml = next
elif size > size_lines: elif size > size_lines:
data_list = chunk[index].split('\n') data_list = chunk[index].split('\n')
chunk[index] = '\n'.join(data_list[:size_lines]) chunk[index] = '\n'.join(data_list[:size_lines])
if Pdata is not None: if current is not None:
Pdata.data = '\n'.join(data_list[size_lines:]) current.data = '\n'.join(data_list[size_lines:])
self.partial_xml = Pdata self.partial_xml = current
else: else:
self.partial_xml.data = '\n'.join(data_list[size_lines:]) self.partial_xml.data = '\n'.join(data_list[size_lines:])
......
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