[GRASS-SVN] r71435 - grass/trunk/lib/python/script
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Aug 25 07:55:50 PDT 2017
Author: zarch
Date: 2017-08-25 07:55:49 -0700 (Fri, 25 Aug 2017)
New Revision: 71435
Modified:
grass/trunk/lib/python/script/utils.py
Log:
scripts.utils: remove builtins
Modified: grass/trunk/lib/python/script/utils.py
===================================================================
--- grass/trunk/lib/python/script/utils.py 2017-08-23 20:04:41 UTC (rev 71434)
+++ grass/trunk/lib/python/script/utils.py 2017-08-25 14:55:49 UTC (rev 71435)
@@ -26,10 +26,7 @@
import re
-try:
- from builtins import unicode
-except ImportError:
- # python3
+if sys.version_info.major == 3:
unicode = str
More information about the grass-commit
mailing list