[Python-checkins] python/dist/src/Lib cgi.py,1.71,1.72

rhettinger@users.sourceforge.net rhettinger@users.sourceforge.net
Fri, 31 May 2002 16:54:47 -0700


Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv3227

Modified Files:
	cgi.py 
Log Message:
Use is None rather than general boolean

Index: cgi.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/cgi.py,v
retrieving revision 1.71
retrieving revision 1.72
diff -C2 -d -r1.71 -r1.72
*** cgi.py	4 Apr 2002 22:55:58 -0000	1.71
--- cgi.py	31 May 2002 23:54:44 -0000	1.72
***************
*** 129,133 ****
              If true, errors raise a ValueError exception.
      """
!     if not fp:
          fp = sys.stdin
      if not environ.has_key('REQUEST_METHOD'):
--- 129,133 ----
              If true, errors raise a ValueError exception.
      """
!     if fp is None:
          fp = sys.stdin
      if not environ.has_key('REQUEST_METHOD'):