diff options
Diffstat (limited to 'Lib/netrc.py')
-rw-r--r-- | Lib/netrc.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/netrc.py b/Lib/netrc.py index 316a66c..1d65dbe 100644 --- a/Lib/netrc.py +++ b/Lib/netrc.py @@ -30,8 +30,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() |