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

Skip Montanaro montanaro@users.sourceforge.net
Thu, 07 Mar 2002 14:58:04 -0800


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

Modified Files:
	pydoc.py 
Log Message:
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.57
retrieving revision 1.58
diff -C2 -d -r1.57 -r1.58
*** pydoc.py	3 Mar 2002 03:12:30 -0000	1.57
--- pydoc.py	7 Mar 2002 22:58:02 -0000	1.58
***************
*** 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):