[Python-checkins] python/dist/src/Lib imaplib.py,1.46,1.47 imputil.py,1.23,1.24 inspect.py,1.33,1.34

rhettinger@users.sourceforge.net rhettinger@users.sourceforge.net
Fri, 31 May 2002 20:06:33 -0700


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

Modified Files:
	imaplib.py imputil.py inspect.py 
Log Message:
Replaced boolean test with is None

Index: imaplib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/imaplib.py,v
retrieving revision 1.46
retrieving revision 1.47
diff -C2 -d -r1.46 -r1.47
*** imaplib.py	16 Apr 2002 01:38:39 -0000	1.46
--- imaplib.py	1 Jun 2002 03:06:31 -0000	1.47
***************
*** 540,544 ****
          self.untagged_responses = {}    # Flush old responses.
          self.is_readonly = readonly
!         if readonly:
              name = 'EXAMINE'
          else:
--- 540,544 ----
          self.untagged_responses = {}    # Flush old responses.
          self.is_readonly = readonly
!         if readonly is not None:
              name = 'EXAMINE'
          else:

Index: imputil.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/imputil.py,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** imputil.py	11 Feb 2002 18:01:32 -0000	1.23
--- imputil.py	1 Jun 2002 03:06:31 -0000	1.24
***************
*** 67,71 ****
          # This is the Importer that we use for grabbing stuff from the
          # filesystem. It defines one more method (import_from_dir) for our use.
!         if not fs_imp:
              cls = self.clsFilesystemImporter or _FilesystemImporter
              fs_imp = cls()
--- 67,71 ----
          # This is the Importer that we use for grabbing stuff from the
          # filesystem. It defines one more method (import_from_dir) for our use.
!         if fs_imp is None:
              cls = self.clsFilesystemImporter or _FilesystemImporter
              fs_imp = cls()

Index: inspect.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/inspect.py,v
retrieving revision 1.33
retrieving revision 1.34
diff -C2 -d -r1.33 -r1.34
*** inspect.py	20 May 2002 17:29:46 -0000	1.33
--- inspect.py	1 Jun 2002 03:06:31 -0000	1.34
***************
*** 666,672 ****
              spec = spec + formatvalue(defaults[i - firstdefault])
          specs.append(spec)
!     if varargs:
          specs.append(formatvarargs(varargs))
!     if varkw:
          specs.append(formatvarkw(varkw))
      return '(' + string.join(specs, ', ') + ')'
--- 666,672 ----
              spec = spec + formatvalue(defaults[i - firstdefault])
          specs.append(spec)
!     if varargs is not None:
          specs.append(formatvarargs(varargs))
!     if varkw is not None:
          specs.append(formatvarkw(varkw))
      return '(' + string.join(specs, ', ') + ')'