[Python-modules-commits] [python-pyld] 248/276: pyld: Python version checker backport.

Wolfgang Borgert debacle at moszumanska.debian.org
Wed Oct 8 23:48:16 UTC 2014


This is an automated email from the git hooks/post-receive script.

debacle pushed a commit to branch master
in repository python-pyld.

commit 34d7bb769e39c873ac2fbe5377f8191d5215aa46
Author: Adrian-Tudor Panescu <adrian.tudor.panescu at cern.ch>
Date:   Thu Feb 27 15:47:28 2014 +0100

    pyld: Python version checker backport.
    
    * Backported Python version checker to work on <=2.6.
    
    Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu at cern.ch>
---
 lib/pyld/jsonld.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/pyld/jsonld.py b/lib/pyld/jsonld.py
index 5fcafcf..41003e2 100644
--- a/lib/pyld/jsonld.py
+++ b/lib/pyld/jsonld.py
@@ -76,7 +76,7 @@ except ImportError:
         return K
 
 # support python 2
-if sys.version_info.major >= 3:
+if sys.version_info[0] >= 3:
     from urllib.request import build_opener as urllib_build_opener
     from urllib.request import HTTPSHandler
     import urllib.parse as urllib_parse

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-pyld.git



More information about the Python-modules-commits mailing list