[cig-commits] r7958 - mc/3D/CitcomS/trunk/visual
tan2 at geodynamics.org
tan2 at geodynamics.org
Wed Sep 12 12:24:56 PDT 2007
Author: tan2
Date: 2007-09-12 12:24:56 -0700 (Wed, 12 Sep 2007)
New Revision: 7958
Modified:
mc/3D/CitcomS/trunk/visual/parser.py
Log:
Fixed a problem when the input string is empty
Modified: mc/3D/CitcomS/trunk/visual/parser.py
===================================================================
--- mc/3D/CitcomS/trunk/visual/parser.py 2007-09-12 19:24:29 UTC (rev 7957)
+++ mc/3D/CitcomS/trunk/visual/parser.py 2007-09-12 19:24:56 UTC (rev 7958)
@@ -171,7 +171,8 @@
def getstr(self, option):
v = self.get(option)
- if v[0] == v[-1] and v[0] in '"\'':
+ # stripping quotation marks
+ if v and v[0] == v[-1] and v[0] in '"\'':
v = v[1:-1]
return v
More information about the cig-commits
mailing list