[GRASS-SVN] r74427 - grass-addons/grass7/raster/r.cpt2grass

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Apr 25 19:16:00 PDT 2019


Author: annakrat
Date: 2019-04-25 19:16:00 -0700 (Thu, 25 Apr 2019)
New Revision: 74427

Modified:
   grass-addons/grass7/raster/r.cpt2grass/r.cpt2grass.py
Log:
r.cpt2grass: fix automatic 2to3 change

Modified: grass-addons/grass7/raster/r.cpt2grass/r.cpt2grass.py
===================================================================
--- grass-addons/grass7/raster/r.cpt2grass/r.cpt2grass.py	2019-04-25 19:22:01 UTC (rev 74426)
+++ grass-addons/grass7/raster/r.cpt2grass/r.cpt2grass.py	2019-04-26 02:16:00 UTC (rev 74427)
@@ -130,9 +130,9 @@
     input_url = options['url']
     if input_url:
         try:
-            from urllib.request import urlopen
+            from six.moves.urllib.request import urlopen
         except ImportError:
-            from urllib.request import urlopen
+            from urllib2 import urlopen
 
         txt = urlopen(input_url).readlines()
     else:



More information about the grass-commit mailing list