[Python-checkins] CVS: python/dist/src/Lib/xml/dom __init__.py,1.7,1.8

Fred L. Drake fdrake@users.sourceforge.net
Mon, 19 Feb 2001 06:57:05 -0800


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

Modified Files:
	__init__.py 
Log Message:

DOMException._get_code():
    New method; this is the "alternate" access to the exception code.
    (Useful for Python DOM implementations that support the accessor
    method approach to retrieving attribute values.)


Index: __init__.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/xml/dom/__init__.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** __init__.py	2001/01/27 08:47:37	1.7
--- __init__.py	2001/02/19 14:57:02	1.8
***************
*** 68,71 ****
--- 68,74 ----
          apply(Exception.__init__, (self,) + args, kw)
  
+     def _get_code(self):
+         return self.code
+ 
  
  class IndexSizeErr(DOMException):