[Python-checkins] CVS: python/dist/src/Lib netrc.py,1.4,1.5

Eric S. Raymond python-dev@python.org
Thu, 13 Jul 2000 06:12:24 -0700


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

Modified Files:
	netrc.py 
Log Message:
Fix bug open/243 reported by Dimitri Papadopoulos


Index: netrc.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/netrc.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** netrc.py	2000/02/04 15:10:33	1.4
--- netrc.py	2000/07/13 13:12:21	1.5
***************
*** 16,20 ****
          self.macros = {}
          lexer = shlex.shlex(fp)
!         lexer.wordchars = lexer.wordchars + '.'
          while 1:
              # Look for a machine, default, or macdef top-level keyword
--- 16,21 ----
          self.macros = {}
          lexer = shlex.shlex(fp)
! 	# Allows @ in hostnames.  Not a big deal...
!         lexer.wordchars = lexer.wordchars + '.-@'
          while 1:
              # Look for a machine, default, or macdef top-level keyword