diff options
Diffstat (limited to 'sphinx/writers/text.py')
-rw-r--r-- | sphinx/writers/text.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/writers/text.py b/sphinx/writers/text.py index a174bc269..3efeac97f 100644 --- a/sphinx/writers/text.py +++ b/sphinx/writers/text.py @@ -459,7 +459,7 @@ class TextTranslator(nodes.NodeVisitor): pass def visit_entry(self, node): - if node.has_key('morerows') or node.has_key('morecols'): + if 'morerows' in node or 'morecols' in node: raise NotImplementedError('Column or row spanning cells are ' 'not implemented.') self.new_state(0) |