Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dfbd4c7

Browse files
Fix bug open/243 reported by Dimitri Papadopoulos
1 parent 9a5086c commit dfbd4c7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/netrc.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ def __init__(self, file=None):
1515
self.hosts = {}
1616
self.macros = {}
1717
lexer = shlex.shlex(fp)
18-
lexer.wordchars = lexer.wordchars + '.'
18+
# Allows @ in hostnames. Not a big deal...
19+
lexer.wordchars = lexer.wordchars + '.-@'
1920
while 1:
2021
# Look for a machine, default, or macdef top-level keyword
2122
toplevel = tt = lexer.get_token()

0 commit comments

Comments
 (0)