[vlc-commits] python: make module python 2.6 compatible
Olivier Aubert
git at videolan.org
Fri Sep 28 23:02:58 CEST 2012
vlc/python | branch: master | Olivier Aubert <olivier.aubert at liris.cnrs.fr> | Fri Sep 28 22:52:36 2012 +0200| [2fb732e2eff2d82fb361168932d9f2eeccb8ff16] | committer: Olivier Aubert
python: make module python 2.6 compatible
sys.version_info.major (namedtuple) was introduced in 2.7. This is the only compatibility issue, so fix it.
Suggested by David Mills <tvtronix-ad-yahoo-dot-com>
> http://git.videolan.org/gitweb.cgi/vlc/python.git/?a=commit;h=2fb732e2eff2d82fb361168932d9f2eeccb8ff16
---
generated/vlc.py | 4 ++--
header.py | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/generated/vlc.py b/generated/vlc.py
index 4b2c30c..27b0643 100755
--- a/generated/vlc.py
+++ b/generated/vlc.py
@@ -48,9 +48,9 @@ import sys
from inspect import getargspec
__version__ = "N/A"
-build_date = "Mon Sep 10 16:51:25 2012"
+build_date = "Fri Sep 28 22:48:50 2012"
-if sys.version_info.major > 2:
+if sys.version_info[0] > 2:
str = str
unicode = str
bytes = bytes
diff --git a/header.py b/header.py
index 5911abc..3b21da3 100755
--- a/header.py
+++ b/header.py
@@ -49,7 +49,7 @@ from inspect import getargspec
build_date = '' # build time stamp and __version__, see generate.py
-if sys.version_info.major > 2:
+if sys.version_info[0] > 2:
str = str
unicode = str
bytes = bytes
More information about the vlc-commits
mailing list