You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mod_python-commits@quetz.apache.org by gr...@apache.org on 2003/12/11 04:15:59 UTC

cvs commit: httpd-python/lib/python/mod_python psp.py

grisha      2003/12/10 19:15:59

  Modified:    lib/python/mod_python psp.py
  Log:
  Fix an if session buglet.
  
  Submitted by:  Sean Leach
  
  Revision  Changes    Path
  1.25      +3 -3      httpd-python/lib/python/mod_python/psp.py
  
  Index: psp.py
  ===================================================================
  RCS file: /home/cvs/httpd-python/lib/python/mod_python/psp.py,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- psp.py	4 Nov 2003 20:30:39 -0000	1.24
  +++ psp.py	11 Dec 2003 03:15:59 -0000	1.25
  @@ -249,7 +249,7 @@
                   
                   # the mere instantiation of a session changes it
                   # (access time), so it *always* has to be saved
  -                if session:
  +                if session is not None:
                       session.save()
               except:
                   et, ev, etb = sys.exc_info()
  @@ -259,7 +259,7 @@
                   else:
                       raise et, ev, etb
           finally:
  -            if session:
  +            if session is not None:
                       session.unlock()
   
       def __str__(self):