[vlc-commits] Fix for Python 3 bytes vs str issue.
mrJean1
git at videolan.org
Fri Jul 13 12:00:40 CEST 2018
vlc/python | branch: master | mrJean1 <mrJean1 at Gmail.com> | Sun Jun 10 15:45:51 2018 -0400| [ec517c2012ac39aa115f144fa4907cbde7650670] | committer: mrJean1
Fix for Python 3 bytes vs str issue.
> http://git.videolan.org/gitweb.cgi/vlc/python.git/?a=commit;h=ec517c2012ac39aa115f144fa4907cbde7650670
---
examples/cocoavlc.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/examples/cocoavlc.py b/examples/cocoavlc.py
index 76aa552..3beb6d3 100755
--- a/examples/cocoavlc.py
+++ b/examples/cocoavlc.py
@@ -60,7 +60,7 @@ import sys
from time import strftime, strptime
__all__ = ('AppVLC',)
-__version__ = '18.06.05'
+__version__ = '18.06.09'
if __PyCocoa__ < '18.06.02':
raise ImportError('%s %s or newer required, see %s' % ('pycocoa',
@@ -79,7 +79,7 @@ _Movies = '.m4v', '.mov', '.mp4' # lower-case file types for movies, videos
_Python = sys.version.split()[0], platform.architecture()[0] # PYCHOK false
_Select = 'Select a video file from the panel'
_VLC_3_ = vlc.__version__.split('.')[0] > '2' and \
- bytes2str(vlc.libvlc_get_version().split('.')[0]) > '2'
+ bytes2str(vlc.libvlc_get_version().split(b'.')[0]) > '2'
def _mspf(fps):
More information about the vlc-commits
mailing list