mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Fix bug open/243 reported by Dimitri Papadopoulos
This commit is contained in:
parent
9a5086c598
commit
dfbd4c7695
1 changed files with 2 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue