From e3b445cec3ed25fc3c972fd3982efd81629f997a Mon Sep 17 00:00:00 2001 From: Hugo Date: Sun, 10 Nov 2019 22:26:17 +0200 Subject: [PATCH] Fix undefined name --- src/tablib/formats/_rst.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tablib/formats/_rst.py b/src/tablib/formats/_rst.py index 9be22e24..ce985fe9 100644 --- a/src/tablib/formats/_rst.py +++ b/src/tablib/formats/_rst.py @@ -123,7 +123,7 @@ def export_set_as_simple_table(cls, dataset, column_widths=None): lines = [] wrapper = TextWrapper() if column_widths is None: - column_widths = _get_column_widths(dataset, pad_len=2) + column_widths = cls._get_column_widths(dataset, pad_len=2) border = " ".join(["=" * w for w in column_widths]) lines.append(border)