Skip to content

Commit

Permalink
Fixing stdout so it will properly handle UTF8
Browse files Browse the repository at this point in the history
  • Loading branch information
natecavanaugh committed May 24, 2014
1 parent 5a829d6 commit c50e6a2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions git-pull-request/git-pull-request.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,12 @@
# import isodate
# from datetime import date

import codecs
import sys

UTF8Writer = codecs.getwriter('utf8')
sys.stdout = UTF8Writer(sys.stdout)

# Connecting through a proxy,
# requires: socks.py from http://socksipy.sourceforge.net/ next to this file

Expand Down

0 comments on commit c50e6a2

Please sign in to comment.