From 9d639008ea7f6b96b9ef692db5740025095863c4 Mon Sep 17 00:00:00 2001 From: Jing Ling Date: Tue, 15 Sep 2020 23:57:46 +0800 Subject: [PATCH] typos --- common/tablib/tablib.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/common/tablib/tablib.py b/common/tablib/tablib.py index e75e6b1..dd36063 100644 --- a/common/tablib/tablib.py +++ b/common/tablib/tablib.py @@ -143,10 +143,9 @@ class Dataset: if is_valid: return True - else: - if not safety: - raise InvalidDimensions - return False + if not safety: + raise InvalidDimensions + return False def _package(self, dicts=True, ordered=True): """Packages Dataset into lists of dictionaries for transmission.""" @@ -274,7 +273,8 @@ class Dataset: """ Export :class:`Dataset` object to `format`. - :param \\*\\*kwargs: (optional) custom configuration to the format `export_set`. + :param format: export format + :param kwargs: (optional) custom configuration to the format `export_set`. """ fmt = registry.get_format(format) if not hasattr(fmt, 'export_set'):