Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Modify Logger.log so that it can output UTF-8 encoded messages.

  • Loading branch information...
commit b154c827e7b26ce33d7a0bb4c317bef2326e2ab2 1 parent 412daad
Marc Abramowitz authored

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. +2 1  pip/log.py
3  pip/log.py
@@ -71,7 +71,8 @@ def log(self, level, msg, *args, **kw):
71 71 ## FIXME: should this be a name, not a level number?
72 72 rendered = '%02i %s' % (level, rendered)
73 73 if hasattr(consumer, 'write'):
74   - consumer.write(rendered+'\n')
  74 + rendered += '\n'
  75 + consumer.buffer.write(rendered.encode('UTF-8'))
75 76 else:
76 77 consumer(rendered)
77 78

0 comments on commit b154c82

Please sign in to comment.
Something went wrong with that request. Please try again.