Edgewall Software

Ticket #7201: perm-share-empty-cache.diff

File perm-share-empty-cache.diff, 0.5 KB (added by Stephen Compall <stephen.compall@…>, 8 months ago)

patch against r7021 (tried on 0.11rc1)

  • trac/perm.py

     
    491491        self.env = env 
    492492        self.username = username or 'anonymous' 
    493493        self._resource = resource 
    494         self._cache = cache is not None and cache or {} 
     494        if cache is None: 
     495            cache = {} 
     496        self._cache = cache 
    495497 
    496498    def _normalize_resource(self, realm_or_resource, id, version): 
    497499        if realm_or_resource: