Skip to content

Commit

Permalink
Fixing print in non-utf8 terminals.
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermechapiewski committed Aug 3, 2009
1 parent 3c04c88 commit b27526c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/__init__.py
Expand Up @@ -4,6 +4,9 @@

SIMPLE_DB_MIGRATE_VERSION = "1.3.1"

# fixing print in non-utf8 terminals
sys.stdout = codecs.getwriter('utf-8')(sys.stdout)

def run():
try:
(options, args) = CLI().parse()
Expand Down

0 comments on commit b27526c

Please sign in to comment.