Changeset 17501
- Timestamp:
- 03/20/14 09:42:58 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/organizer.py
r17497 r17501 7 7 from model import model 8 8 from whichdb import whichdb 9 import MatlabFuncs as m 9 10 10 11 class organizer(object): … … 40 41 if not isinstance(prefix,(str,unicode)): 41 42 raise TypeError("prefix is not a string") 42 if not strcmp(prefix,prefix.strip()) or len(prefix.split()) > 1:43 if not m.strcmp(prefix,prefix.strip()) or len(prefix.split()) > 1: 43 44 raise TypeError("prefix should not have any white space") 44 45 self.prefix=prefix … … 60 61 if not isinstance(trunkprefix,(str,unicode)): 61 62 raise TypeError("trunkprefix is not a string") 62 if not strcmp(trunkprefix,trunkprefix.strip()) or len(trunkprefix.split()) > 1:63 if not m.strcmp(trunkprefix,trunkprefix.strip()) or len(trunkprefix.split()) > 1: 63 64 raise TypeError("trunkprefix should not have any white space") 64 65 self.trunkprefix=trunkprefix … … 123 124 if not isinstance(string,(str,unicode)): 124 125 raise TypeError("Step provided should be a string") 125 if not strcmp(string,string.strip()) or len(string.split()) > 1:126 if not m.strcmp(string,string.strip()) or len(string.split()) > 1: 126 127 raise TypeError("Step provided should not have any white space") 127 128 if self._currentstep>0 and string in [step['string'] for step in self.steps]:
Note:
See TracChangeset
for help on using the changeset viewer.