[GRASS-SVN] r56950 - grass/trunk/scripts/i.spectral
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Jun 29 03:42:18 PDT 2013
Author: hamish
Date: 2013-06-29 03:42:18 -0700 (Sat, 29 Jun 2013)
New Revision: 56950
Modified:
grass/trunk/scripts/i.spectral/i.spectral.py
Log:
use == for value comparison
Modified: grass/trunk/scripts/i.spectral/i.spectral.py
===================================================================
--- grass/trunk/scripts/i.spectral/i.spectral.py 2013-06-29 10:40:07 UTC (rev 56949)
+++ grass/trunk/scripts/i.spectral/i.spectral.py 2013-06-29 10:42:18 UTC (rev 56950)
@@ -216,7 +216,7 @@
what = []
s = grass.read_command('r.what', map=rastermaps, coordinates=coords,
null='0', quiet=True)
- if len(s) is 0:
+ if len(s) == 0:
grass.fatal(_('No data returned from query'))
for l in s.splitlines():
More information about the grass-commit
mailing list