From: Raymond Hettinger Date: Wed, 23 Apr 2003 19:37:42 +0000 (+0000) Subject: Backport 1.17 adding punctuation as allowable characters X-Git-Tag: v2.2.3c1~66 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1fb996f3c016bccddbbc47680124ed11cde571f7;p=thirdparty%2FPython%2Fcpython.git Backport 1.17 adding punctuation as allowable characters --- diff --git a/Lib/netrc.py b/Lib/netrc.py index 294399d35b0b..5c9e1ff5217f 100644 --- a/Lib/netrc.py +++ b/Lib/netrc.py @@ -27,8 +27,7 @@ class netrc: self.hosts = {} self.macros = {} lexer = shlex.shlex(fp) - # Allows @ in hostnames. Not a big deal... - lexer.wordchars = lexer.wordchars + '.-@' + lexer.wordchars += r"""!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~""" while 1: # Look for a machine, default, or macdef top-level keyword toplevel = tt = lexer.get_token()