def __parseInfo( self, attributes, line ):
        """parse attributes.
        """
        # remove comments
        attributes = attributes.split( "#" )[0]
        # separate into fields
        fields = map( lambda x: x.strip(), attributes.split(";")[:-1])
        self.mAttributes = {}

        for f in fields:
            
            d = map( lambda x: x.strip(), f.split(" "))
            n,v = d[0], d[1]
            if len(d) > 2: v = d[1:]

            if v[0] == '"' and v[-1] == '"':
                v = v[1:-1]
            else:
                ## try to convert to a value
                try:
                    v = float( v )
                    v = int( v )
                except ValueError:
                    pass
                except __HOLE__:
                    pass

            self.mAttributes[n] = v
dataset/ETHPy150Open CGATOxford/cgat/obsolete/GFF.py/Entry.__parseInfo