[Python-checkins] python/dist/src/Lib inspect.py,1.32,1.33

mwh@sourceforge.net mwh@sourceforge.net
Mon, 20 May 2002 10:29:48 -0700


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

Modified Files:
	inspect.py 
Log Message:
Use types.StringTypes instead of explicit (str, unicode) list


Index: inspect.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/inspect.py,v
retrieving revision 1.32
retrieving revision 1.33
diff -C2 -d -r1.32 -r1.33
*** inspect.py	26 Apr 2002 02:29:55 -0000	1.32
--- inspect.py	20 May 2002 17:29:46 -0000	1.33
***************
*** 268,272 ****
      except AttributeError:
          return None
!     if not isinstance(doc, (str, unicode)):
          return None
      try:
--- 268,272 ----
      except AttributeError:
          return None
!     if not isinstance(doc, types.StringTypes):
          return None
      try: