From: Eric S. Raymond Date: Thu, 13 Jul 2000 13:12:21 +0000 (+0000) Subject: Fix bug open/243 reported by Dimitri Papadopoulos X-Git-Tag: v2.0b1~845 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dfbd4c769516f750fb58cc819c7cdfa1592cf3e3;p=thirdparty%2FPython%2Fcpython.git Fix bug open/243 reported by Dimitri Papadopoulos --- diff --git a/Lib/netrc.py b/Lib/netrc.py index d24c388db320..60849ce6af89 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()