Explorar o código

g,manual: fix import for python2 and python3

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@68360 15284696-431f-4ddb-bdfa-cd5b030d7da7
Pietro Zambelli %!s(int64=9) %!d(string=hai) anos
pai
achega
03bb8a85c3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      scripts/g.manual/g.manual.py

+ 1 - 1
scripts/g.manual/g.manual.py

@@ -50,7 +50,7 @@ import sys
 import os
 
 try:
-    from urlib import urlopen
+    from urllib2 import urlopen
 except ImportError:
     # python3
     from urllib.request import urlopen