[GRASS-SVN] r59140 - in grass/trunk/lib/python/pygrass: modules/interface vector
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Feb 25 13:02:12 PST 2014
Author: mmetz
Date: 2014-02-25 13:02:11 -0800 (Tue, 25 Feb 2014)
New Revision: 59140
Modified:
grass/trunk/lib/python/pygrass/modules/interface/module.py
grass/trunk/lib/python/pygrass/vector/table.py
Log:
pygrass: restore python 2.6 compatibility
Modified: grass/trunk/lib/python/pygrass/modules/interface/module.py
===================================================================
--- grass/trunk/lib/python/pygrass/modules/interface/module.py 2014-02-25 20:45:02 UTC (rev 59139)
+++ grass/trunk/lib/python/pygrass/modules/interface/module.py 2014-02-25 21:02:11 UTC (rev 59140)
@@ -51,7 +51,7 @@
with_statement, print_function, unicode_literals)
import sys
-if sys.version_info.major == 2:
+if sys.version_info[0] == 2:
from itertools import izip_longest as zip_longest
else:
from itertools import zip_longest
Modified: grass/trunk/lib/python/pygrass/vector/table.py
===================================================================
--- grass/trunk/lib/python/pygrass/vector/table.py 2014-02-25 20:45:02 UTC (rev 59139)
+++ grass/trunk/lib/python/pygrass/vector/table.py 2014-02-25 21:02:11 UTC (rev 59140)
@@ -13,7 +13,7 @@
import os
import sys
-long = int if sys.version_info.major == 3 else long
+long = int if sys.version_info[0] == 3 else long
import ctypes
import numpy as np
More information about the grass-commit
mailing list