Changeset 4638

Show
Ignore:
Timestamp:
04/30/09 01:41:05 (4 years ago)
Author:
getxsick
Message:

type-checking by isinstance instead of type()

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branch/UMPA/umpa/protocols/_fields.py

    r4602 r4638  
    3030""" 
    3131 
     32import types 
     33 
    3234from umpa.utils.exceptions import UMPAException, UMPAAttributeException 
    3335 
     
    415417 
    416418        # convert the value to the list if it's str 
    417         if type(self._value) is str: 
     419        if isinstance(self._value, types.StringType): 
    418420            pieces = self._value.split(self.separator) 
    419421        else: