[Python-checkins] CVS: python/dist/src/Lib rfc822.py,1.48,1.49

Barry Warsaw python-dev@python.org
Mon, 25 Sep 2000 08:08:31 -0700


Update of /cvsroot/python/python/dist/src/Lib
In directory slayer.i.sourceforge.net:/tmp/cvs-serv4601

Modified Files:
	rfc822.py 
Log Message:
AddrlistClass.getdomainliteral(): rfc822 requires that the domain
literal be wrapped in square brackets.  This fix replaces the square
brackets that were previously being stripped off.  Closes SF bug
#110621.


Index: rfc822.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/rfc822.py,v
retrieving revision 1.48
retrieving revision 1.49
diff -C2 -r1.48 -r1.49
*** rfc822.py	2000/08/24 20:14:09	1.48
--- rfc822.py	2000/09/25 15:08:27	1.49
***************
*** 704,708 ****
      def getdomainliteral(self):
          """Parse an RFC-822 domain-literal."""
!         return self.getdelimited('[', ']\r', 0)
      
      def getatom(self):
--- 704,708 ----
      def getdomainliteral(self):
          """Parse an RFC-822 domain-literal."""
!         return '[%s]' % self.getdelimited('[', ']\r', 0)
      
      def getatom(self):