summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2011-10-06 11:43:55 -0300
committerRenato Filho <renato.filho@openbossa.org>2011-10-06 15:43:32 -0300
commitcbd5c150cdc7f5499b9b60cecd46aedac07409e6 (patch)
treec6b5213baa4b59aa7279d0f3f88f938bd32ab319
parente7f9b64a2383e7687b170798539681fd694bba11 (diff)
downloadpyside-cbd5c150cdc7f5499b9b60cecd46aedac07409e6.tar.gz
pyside-cbd5c150cdc7f5499b9b60cecd46aedac07409e6.tar.xz
pyside-cbd5c150cdc7f5499b9b60cecd46aedac07409e6.zip
Updated __init__.py file to works with python 2.x and 3.x
-rw-r--r--PySide/__init__.py.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/PySide/__init__.py.in b/PySide/__init__.py.in
index 40731a8..9536718 100644
--- a/PySide/__init__.py.in
+++ b/PySide/__init__.py.in
@@ -1,5 +1,9 @@
+import sys
+
__all__ = ['QtCore', 'QtGui', 'QtNetwork', 'QtOpenGL', 'QtSql', 'QtSvg', 'QtTest', 'QtWebKit', 'QtScript']
-import private
+
+if sys.version_info[0] < 3:
+ import private
__version__ = "@BINDING_API_VERSION_FULL@"
__version_info__ = (@BINDING_API_MAJOR_VERSION@, @BINDING_API_MINOR_VERSION@, @BINDING_API_MICRO_VERSION@, "@BINDING_API_RELEASE_LEVEL@", @BINDING_API_SERIAL@)