[Python-checkins] python/dist/src/Lib netrc.py,1.12.22.1,1.12.22.2

rhettinger@users.sourceforge.net rhettinger@users.sourceforge.net
2003年4月23日 12:37:46 -0700


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1:/tmp/cvs-serv30010
Modified Files:
 Tag: release22-maint
	netrc.py 
Log Message:
Backport 1.17 adding punctuation as allowable characters
Index: netrc.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/netrc.py,v
retrieving revision 1.12.22.1
retrieving revision 1.12.22.2
diff -C2 -d -r1.12.22.1 -r1.12.22.2
*** netrc.py	25 Mar 2002 13:22:14 -0000	1.12.22.1
--- netrc.py	23 Apr 2003 19:37:42 -0000	1.12.22.2
***************
*** 28,33 ****
 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
--- 28,32 ----
 self.macros = {}
 lexer = shlex.shlex(fp)
! lexer.wordchars += r"""!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~"""
 while 1:
 # Look for a machine, default, or macdef top-level keyword

AltStyle によって変換されたページ (->オリジナル) /