diff options
| author | shimizukawa <shimizukawa@gmail.com> | 2013-01-21 08:09:43 +0900 |
|---|---|---|
| committer | shimizukawa <shimizukawa@gmail.com> | 2013-01-21 08:09:43 +0900 |
| commit | 1eb2f2dd4b823b8d4ece926951b73a64bf38aa80 (patch) | |
| tree | 0684bb12f657de2c2d727495c1fbf93552a40028 /sphinx | |
| parent | f8e8cf6a197a25f94eae92f24f9f28d85949c41f (diff) | |
| download | sphinx-1eb2f2dd4b823b8d4ece926951b73a64bf38aa80.tar.gz | |
fix debug2 UnicodeEncodeError issue with multibyte names node
Diffstat (limited to 'sphinx')
| -rw-r--r-- | sphinx/application.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sphinx/application.py b/sphinx/application.py index 02f0ff82..5ab55673 100644 --- a/sphinx/application.py +++ b/sphinx/application.py @@ -343,7 +343,8 @@ class Sphinx(object): event.pop(listener_id, None) def emit(self, event, *args): - self.debug2('[app] emitting event: %r%s', event, str(args)[:100]) + args_repr = repr(map(unicode, args))[:100] + self.debug2('[app] emitting event: %s%s', event, args_repr) results = [] if event in self._listeners: for _, callback in self._listeners[event].iteritems(): |
