void-packages/srcpkgs/python3-rst2ansi/patches/table-fix.patch

32 lines
813 B
Diff

From 1b1b963804bcc87a7187d07c3943585d9385ea92 Mon Sep 17 00:00:00 2001
From: Jakub Wilk <jwilk@jwilk.net>
Date: Thu, 14 Jul 2016 13:39:31 +0200
Subject: [PATCH 1/2] Fix name error
---
rst2ansi/table.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/rst2ansi/table.py b/rst2ansi/table.py
index 389eb38..9f867a5 100644
--- a/rst2ansi/table.py
+++ b/rst2ansi/table.py
@@ -91,7 +91,7 @@ def noop(*args, **kwargs):
def visit_table(self, node):
if self.level > 0:
- raise SkipChildren
+ raise nodes.SkipChildren
self.level += 1
def depart_table(self, node):
@@ -197,7 +197,7 @@ def _draw_rule(self):
def visit_table(self, node):
if self.level > 0:
- raise SkipChildren
+ raise nodes.SkipChildren
self.level += 1
self._draw_rule()