Ignore:
Timestamp:
Mar 4, 2011, 2:34:28 PM (14 years ago)
Author:
wilsonr
Message:

Changes to address ticket 360.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/file_conversion/urs2sts.py

    r7778 r8125  
    8383    import os
    8484    from Scientific.IO.NetCDF import NetCDFFile
    85     from types import ListType,StringType
    8685    from operator import __and__
    8786
    88     if not isinstance(basename_in, ListType):
     87    if not isinstance(basename_in, list):
    8988        if verbose: log.critical('Reading single source')
    9089        basename_in = [basename_in]
     
    9695
    9796    # 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)):
    9998        msg= 'basename_in must be a string or list of strings'
    10099        raise Exception, msg
Note: See TracChangeset for help on using the changeset viewer.