Commit 83d5fd36 authored by Jérome Perrin's avatar Jérome Perrin

document py3

parent 24104b53
...@@ -477,8 +477,7 @@ class Document(DocumentExtensibleTraversableMixin, XMLObject, UrlMixin, ...@@ -477,8 +477,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