[vlc-commits] python bindings: getch() returns a string, there is no decode() method

Olivier Aubert git at videolan.org
Mon Sep 10 17:00:15 CEST 2012


vlc/python | branch: master | Olivier Aubert <olivier.aubert at liris.cnrs.fr> | Mon Sep 10 16:38:53 2012 +0200| [a49fddd784d2e3fc40e62a5c033e08a220687b1e] | committer: Olivier Aubert

python bindings: getch() returns a string, there is no decode() method

> http://git.videolan.org/gitweb.cgi/vlc/python.git/?a=commit;h=a49fddd784d2e3fc40e62a5c033e08a220687b1e
---

 footer.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/footer.py b/footer.py
index f150993..d294265 100644
--- a/footer.py
+++ b/footer.py
@@ -225,7 +225,7 @@ if __name__ == '__main__':
 
         print('Press q to quit, ? to get help.%s' % os.linesep)
         while True:
-            k = getch().decode('utf8')  # Python 3+
+            k = getch()
             print('> %s' % k)
             if k in keybindings:
                 keybindings[k]()



More information about the vlc-commits mailing list