summaryrefslogtreecommitdiff
path: root/factory/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'factory/utils.py')
-rw-r--r--factory/utils.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/factory/utils.py b/factory/utils.py
index fb8cfef..e1b265f 100644
--- a/factory/utils.py
+++ b/factory/utils.py
@@ -94,3 +94,10 @@ def import_object(module_name, attribute_name):
module = __import__(module_name, {}, {}, [attribute_name], 0)
return getattr(module, attribute_name)
+
+def log_pprint(args=(), kwargs=None):
+ kwargs = kwargs or {}
+ return ', '.join(
+ [str(arg) for arg in args] +
+ ['%s=%r' % item for item in kwargs.items()]
+ )