Changeset 8125 for trunk/anuga_core/source/anuga/file_conversion/urs2sts.py
- Timestamp:
- Mar 4, 2011, 2:34:28 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/file_conversion/urs2sts.py
r7778 r8125 83 83 import os 84 84 from Scientific.IO.NetCDF import NetCDFFile 85 from types import ListType,StringType86 85 from operator import __and__ 87 86 88 if not isinstance(basename_in, ListType):87 if not isinstance(basename_in, list): 89 88 if verbose: log.critical('Reading single source') 90 89 basename_in = [basename_in] … … 96 95 97 96 # Check that basename is a list of strings 98 if not reduce(__and__, map(lambda z:isinstance(z, StringType), basename_in)):97 if not reduce(__and__, map(lambda z:isinstance(z,basestring), basename_in)): 99 98 msg= 'basename_in must be a string or list of strings' 100 99 raise Exception, msg
Note: See TracChangeset
for help on using the changeset viewer.