From 76ef7299eb028b422edd95aa1e9412bb155f7a40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20B=C3=B6hm?= Date: Fri, 1 Sep 2017 14:29:00 +0200 Subject: [PATCH] Fix argument delegation of convenience functions. The convenience functions now delegate the parameters they're called with to the temporary instantiation of the `TextLorem` class instead of the method calls, the latter of which don't have arguments. --- lorem/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lorem/__init__.py b/lorem/__init__.py index 966c403..d7eb861 100644 --- a/lorem/__init__.py +++ b/lorem/__init__.py @@ -35,12 +35,12 @@ def sentence(*args, **kwargs): - return _Lorem().sentence(*args, **kwargs) + return _Lorem(*args, **kwargs).sentence() def paragraph(*args, **kwargs): - return _Lorem().paragraph(*args, **kwargs) + return _Lorem(*args, **kwargs).paragraph() def text(*args, **kwargs): - return _Lorem().text(*args, **kwargs) + return _Lorem(*args, **kwargs).text()