Ticket #258: kwargs-258.2.diff

File kwargs-258.2.diff, 0.7 KB (added by nick, 9 months ago)

Updated patch

  • pyamf/remoting/__init__.py

     
    230230 
    231231    level = None 
    232232 
    233     def __init__(self, code='', type='', details='', description=''): 
    234         self.code = code 
    235         self.type = type 
    236         self.details = details 
    237         self.description = description 
     233    def __init__(self, *args, **kwargs): 
     234        self.code = kwargs.get('code', '') 
     235        self.type = kwargs.get('type', '') 
     236        self.details = kwargs.get('details', '') 
     237        self.description = kwargs.get('description', '') 
    238238 
    239239    def __repr__(self): 
    240240        x = '<%s level=%s' % (self.__class__.__name__, self.level)