(self, name)
For convenience, make self.contents directly accessible.

        Underscores, legal in python variable names, are converted to dashes,
        which are legal in IANA tokens.
For convenience, make self.contents directly accessible.
For convenience make self . contents directly accessible .
def __getattr__(self, name):
        """
        For convenience, make self.contents directly accessible.

        Underscores, legal in python variable names, are converted to dashes,
        which are legal in IANA tokens.
        """
        # if the object is being re-created by pickle, self.contents may not
        # be set, don't get into an infinite loop over the issue
        if name == 'contents':
            return object.__getattribute__(self, name)
        try:
            if name.endswith('_list'):
                return self.contents[toVName(name, 5)]
            else:
                return self.contents[toVName(name)][0]
        except KeyError:
            raise AttributeError(name)
def __getattr__ ( self , name ) : # if the object is being re-created by pickle, self.contents may not # be set, don't get into an infinite loop over the issue if name == 'contents' : return object . __getattribute__ ( self , name ) try : if name . endswith ( '_list' ) : return self . contents [ toVName ( name , 5 ) ] else : return self . contents [ toVName ( name ) ] [ 0 ] except KeyError : raise AttributeError ( name )