Show
Ignore:
Timestamp:
11/08/08 18:54:21 (22 months ago)
Author:
Ben Bangert <ben@…>
Branch:
trunk
Children:
1702:b668203ea65b, 1703:e2456ff6b3fd
Message:

Under some conditions, pylons.pylons is already wiped before del has a chance to hit it, test for it first.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pylons/wsgiapp.py

    r1658 r1701  
    136136            # Help Python collect ram a bit faster by removing the reference  
    137137            # cycle that the pylons object causes 
    138             del environ['pylons.pylons'] 
     138            if 'pylons.pylons' in environ: 
     139                del environ['pylons.pylons'] 
    139140     
    140141    def register_globals(self, environ): 


Powered by Pylons - Contact Administrators