summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2000-07-13 13:12:21 +0000
committerEric S. Raymond <esr@thyrsus.com>2000-07-13 13:12:21 +0000
commitdfbd4c769516f750fb58cc819c7cdfa1592cf3e3 (patch)
treec095a1a9b067f8b204b2e9d2ddac7a3b318884f1
parent9a5086c598370be29bac12509736c47d4801a7fc (diff)
downloadcpython-git-dfbd4c769516f750fb58cc819c7cdfa1592cf3e3.tar.gz
Fix bug open/243 reported by Dimitri Papadopoulos
-rw-r--r--Lib/netrc.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/netrc.py b/Lib/netrc.py
index d24c388db3..60849ce6af 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()