alejandrogomez/turses — pull request #140 by mkomitee (2013-02-22 03:34:57+00:00)
Title: Fix issue when sys.stdout.encoding is None

In my build of python (2.7.3) `sys.stdout.encoding` is `None` which causes `turses.utils.encode` to raise a `TypeError`. This change catches that and returns the string as-is, just as you expect to do if an `AttributeError` is raised.