[Python-checkins] CVS: python/dist/src/Lib pydoc.py,1.56,1.56.8.1

Michael Hudson mwh@users.sourceforge.net
Fri, 08 Mar 2002 05:40:48 -0800


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

Modified Files:
      Tag: release22-maint
	pydoc.py 
Log Message:
backport montanaro's checkin of
    revision 1.58 of pydoc.py

add repr_str as alias for repr_string in both HTMLRepr and TextRepr classes
- reflects the change in type("").__name__ between 2.1 and 2.2.  The
__name__ field is used to find a method to call for particular types.


Index: pydoc.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/pydoc.py,v
retrieving revision 1.56
retrieving revision 1.56.8.1
diff -C2 -d -r1.56 -r1.56.8.1
*** pydoc.py	31 Oct 2001 04:20:26 -0000	1.56
--- pydoc.py	8 Mar 2002 13:40:46 -0000	1.56.8.1
***************
*** 312,315 ****
--- 312,317 ----
                        self.escape(testrepr))
  
+     repr_str = repr_string
+ 
      def repr_instance(self, x, level):
          try:
***************
*** 860,863 ****
--- 862,867 ----
              return 'r' + testrepr[0] + test + testrepr[0]
          return testrepr
+ 
+     repr_str = repr_string
  
      def repr_instance(self, x, level):