summaryrefslogtreecommitdiffstats
path: root/Lib/netrc.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/netrc.py')
-rw-r--r--Lib/netrc.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/netrc.py b/Lib/netrc.py
index d24c388..60849ce 100644
--- a/Lib/netrc.py
+++ b/Lib/netrc.py
@@ -15,7 +15,8 @@ class netrc:
self.hosts = {}
self.macros = {}
lexer = shlex.shlex(fp)
- lexer.wordchars = lexer.wordchars + '.'
+ # Allows @ in hostnames. Not a big deal...
+ lexer.wordchars = lexer.wordchars + '.-@'
while 1:
# Look for a machine, default, or macdef top-level keyword
toplevel = tt = lexer.get_token()