[GRASS-SVN] r68360 - grass/trunk/scripts/g.manual

svn_grass at osgeo.org svn_grass at osgeo.org
Mon May 2 09:08:58 PDT 2016


Author: zarch
Date: 2016-05-02 09:08:58 -0700 (Mon, 02 May 2016)
New Revision: 68360

Modified:
   grass/trunk/scripts/g.manual/g.manual.py
Log:
g,manual: fix import for python2 and python3

Modified: grass/trunk/scripts/g.manual/g.manual.py
===================================================================
--- grass/trunk/scripts/g.manual/g.manual.py	2016-05-02 16:08:53 UTC (rev 68359)
+++ grass/trunk/scripts/g.manual/g.manual.py	2016-05-02 16:08:58 UTC (rev 68360)
@@ -50,7 +50,7 @@
 import os
 
 try:
-    from urlib import urlopen
+    from urllib2 import urlopen
 except ImportError:
     # python3
     from urllib.request import urlopen



More information about the grass-commit mailing list