[vlc-commits] Define unicode() in Python 3
cclauss
git at videolan.org
Fri Jul 13 12:00:55 CEST 2018
vlc/python | branch: master | cclauss <cclauss at bluewin.ch> | Tue Jul 10 16:52:16 2018 +0200| [d7b62787dbe44e6c2bc10347cd2e02511276fb31] | committer: GitHub
Define unicode() in Python 3
> http://git.videolan.org/gitweb.cgi/vlc/python.git/?a=commit;h=d7b62787dbe44e6c2bc10347cd2e02511276fb31
---
examples/wxvlc.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/examples/wxvlc.py b/examples/wxvlc.py
index 9e71c63..6b582e2 100755
--- a/examples/wxvlc.py
+++ b/examples/wxvlc.py
@@ -34,6 +34,12 @@ import vlc
import os
import sys
+try:
+ unicode # Python 2
+except NameError:
+ unicode = str # Python 3
+
+
class Player(wx.Frame):
"""The main window has to deal with events.
"""
More information about the vlc-commits
mailing list