Commit d96d8c8b authored by Eric S. Raymond's avatar Eric S. Raymond

Fix bug open/243 reported by Dimitri Papadopoulos

parent f1b7cd81
......@@ -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()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment