Commit 630113e9 authored by Jérome Perrin's avatar Jérome Perrin Committed by Arnaud Fontaine

document py3

parent 9f609a87
...@@ -491,8 +491,7 @@ class Document(DocumentExtensibleTraversableMixin, XMLObject, UrlMixin, ...@@ -491,8 +491,7 @@ class Document(DocumentExtensibleTraversableMixin, XMLObject, UrlMixin,
tmp = {} tmp = {}
for match in rx_search.finditer(text): for match in rx_search.finditer(text):
group = match.group() group = match.group()
group_item_list = match.groupdict().items() group_item_list = sorted(match.groupdict().items())
group_item_list.sort()
key = (group, tuple(group_item_list)) key = (group, tuple(group_item_list))
tmp[key] = None tmp[key] = None
for group, group_item_tuple in tmp.keys(): for group, group_item_tuple in tmp.keys():
......
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