1. Sviatoslav Sydorenko
  2. blueberrypy-wk

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
  • Branches default

Comments (0)

Files changed (1)

File src/blueberrypy/console.py

View file
  • Ignore whitespace
                 if encoding:
                     try:
                         return r.decode(encoding)
-                    except UnicodeError:
+                    except (UnicodeError, AttributeError):
                         pass
                     return r
         except EOFError: