aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polytechnique.org>2014-01-22 22:41:28 +0100
committerRaphaël Barrois <raphael.barrois@polytechnique.org>2014-01-22 22:42:00 +0100
commitecbe5557f99f2f4b14b6c9b4bb79993269906fa8 (patch)
treefe91825f6ebc938201a275b842e895c5f9481d2b
parentf3ed0fa0c1d2d367a905952e9a6feaab58185616 (diff)
downloadfactory-boy-ecbe5557f99f2f4b14b6c9b4bb79993269906fa8.tar
factory-boy-ecbe5557f99f2f4b14b6c9b4bb79993269906fa8.tar.gz
Fix log_pprint for *args (Closes #127).
-rw-r--r--docs/changelog.rst2
-rw-r--r--factory/utils.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/changelog.rst b/docs/changelog.rst
index b86d865..57b29c4 100644
--- a/docs/changelog.rst
+++ b/docs/changelog.rst
@@ -21,7 +21,7 @@ ChangeLog
- Fix badly written assert containing state-changing code, spotted by `chsigi <https://github.com/chsigi>`_ (:issue:`126`)
- Don't crash when handling objects whose __repr__ is non-pure-ascii bytes on Py2,
- discovered by `mbertheau <https://github.com/mbertheau>`_ (:issue:`123`)
+ discovered by `mbertheau <https://github.com/mbertheau>`_ (:issue:`123`) and `strycore <https://github.com/strycore>`_ (:issue:`127`)
.. _v2.3.0:
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()