Define unicode() in Python 3
authorcclauss <cclauss@bluewin.ch>
Tue, 10 Jul 2018 14:52:16 +0000 (16:52 +0200)
committerGitHub <noreply@github.com>
Tue, 10 Jul 2018 14:52:16 +0000 (16:52 +0200)
examples/wxvlc.py

index 9e71c63..6b582e2 100755 (executable)
@@ -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.
     """