Commits

Sviatoslav Sydorenko committed 69092fb

Py3k console fix. Reason: str has no method decode in python3, 'cause it's all-unicode by default

Comments (0)

Files changed (1)

src/blueberrypy/console.py

                 if encoding:
                     try:
                         return r.decode(encoding)
-                    except UnicodeError:
+                    except (UnicodeError, AttributeError):
                         pass
                     return r
         except EOFError: