From ecbe5557f99f2f4b14b6c9b4bb79993269906fa8 Mon Sep 17 00:00:00 2001 From: Raphaƫl Barrois Date: Wed, 22 Jan 2014 22:41:28 +0100 Subject: Fix log_pprint for *args (Closes #127). --- factory/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'factory') diff --git a/factory/utils.py b/factory/utils.py index b27fd77..276977a 100644 --- a/factory/utils.py +++ b/factory/utils.py @@ -113,7 +113,7 @@ def _safe_repr(obj): def log_pprint(args=(), kwargs=None): kwargs = kwargs or {} return ', '.join( - [repr(arg) for arg in args] + + [_safe_repr(arg) for arg in args] + [ '%s=%s' % (key, _safe_repr(value)) for key, value in kwargs.items() -- cgit v1.2.3