beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From al...@apache.org
Subject [1/2] beam git commit: [BEAM-1546] Specify exact version for Python in the SDK
Date Tue, 07 Mar 2017 17:09:28 GMT
Repository: beam
Updated Branches:
  refs/heads/master 388b82e8b -> 73b9dd6a5


[BEAM-1546] Specify exact version for Python in the SDK


Project: http://git-wip-us.apache.org/repos/asf/beam/repo
Commit: http://git-wip-us.apache.org/repos/asf/beam/commit/fb30c8f1
Tree: http://git-wip-us.apache.org/repos/asf/beam/tree/fb30c8f1
Diff: http://git-wip-us.apache.org/repos/asf/beam/diff/fb30c8f1

Branch: refs/heads/master
Commit: fb30c8f1da31f5cf08d7323194b41b1a417dfaf2
Parents: 388b82e
Author: Tibor Kiss <tibor.kiss@gmail.com>
Authored: Fri Feb 24 14:30:54 2017 +0100
Committer: Ahmet Altay <altay@google.com>
Committed: Tue Mar 7 09:09:03 2017 -0800

----------------------------------------------------------------------
 sdks/python/apache_beam/__init__.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/beam/blob/fb30c8f1/sdks/python/apache_beam/__init__.py
----------------------------------------------------------------------
diff --git a/sdks/python/apache_beam/__init__.py b/sdks/python/apache_beam/__init__.py
index ce382b8..77c89ad 100644
--- a/sdks/python/apache_beam/__init__.py
+++ b/sdks/python/apache_beam/__init__.py
@@ -66,10 +66,10 @@ The examples subdirectory has some examples.
 import sys
 
 
-if sys.version_info.major != 2:
+if not (sys.version_info[0] == 2 and sys.version_info[1] == 7):
   raise RuntimeError(
       'Dataflow SDK for Python is supported only on Python 2.7. '
-      'It is not supported on Python [%s].' % sys.version)
+      'It is not supported on Python [%s].' % sys.version_info)
 
 # pylint: disable=wrong-import-position
 import apache_beam.internal.pickler


Mime
View raw message