Remove use of method new in docutils 0.7.

This commit is contained in:
Georg Brandl 2011-01-08 23:08:31 +01:00
parent 6c23616b2c
commit b4558269a6

View File

@ -236,7 +236,7 @@ class Glossary(Directive):
in_definition = True
was_empty = True
messages = []
for (source, lineno, line) in self.content.xitems():
for line, (source, lineno) in zip(self.content, self.content.items):
# empty line -> add to last definition
if not line:
if in_definition and entries: