Commits

Sviatoslav Sydorenko  committed 69092fb

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

  • Participants
  • Parent commits 9d00e46

Comments (0)

Files changed (1)

File src/blueberrypy/console.py

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