]> granicus.if.org Git - python/commitdiff
Fix bug open/243 reported by Dimitri Papadopoulos
authorEric S. Raymond <esr@thyrsus.com>
Thu, 13 Jul 2000 13:12:21 +0000 (13:12 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Thu, 13 Jul 2000 13:12:21 +0000 (13:12 +0000)
Lib/netrc.py

index d24c388db320b9c5e12b43ce863ec642cbc43dad..60849ce6af8996b96cc2da92321e0594ebe282c1 100644 (file)
@@ -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()