summaryrefslogtreecommitdiff
path: root/src/tablib
diff options
context:
space:
mode:
authorHugo van Kemenade <hugovk@users.noreply.github.com>2019-11-12 10:53:20 +0200
committerGitHub <noreply@github.com>2019-11-12 10:53:20 +0200
commit57a535f577379214f415a8deee5fa2ab2c5f2415 (patch)
treecd297a0050be8bf56606f57bb50491a11a8b0814 /src/tablib
parent357a5594c55a3a99b7949eed7845e9335cb15248 (diff)
downloadtablib-57a535f577379214f415a8deee5fa2ab2c5f2415.tar.gz
Fix NameError: name '_get_column_widths' is not defined (#433)
* Fix NameError: name '_get_column_widths' is not defined * Also test ReSTFormat.export_set
Diffstat (limited to 'src/tablib')
-rw-r--r--src/tablib/formats/_rst.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tablib/formats/_rst.py b/src/tablib/formats/_rst.py
index 9e2cc73..793bce9 100644
--- a/src/tablib/formats/_rst.py
+++ b/src/tablib/formats/_rst.py
@@ -113,7 +113,7 @@ class ReSTFormat:
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)