vlc/python | branch: master | cclauss <ccla...@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.
     """

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to