diff options
author | Raymond Hettinger <python@rcn.com> | 2003-04-23 18:59:54 +0000 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2003-04-23 18:59:54 +0000 |
commit | 3cf6f7eff35f2efe38d3f400763caee994c8c4c3 (patch) | |
tree | d5bb062209bddb94ff286e2ffa87154a7bdfd6e2 /Lib/netrc.py | |
parent | c6dd33eda43044ff2239de9934876c09c9a8b710 (diff) | |
download | cpython-3cf6f7eff35f2efe38d3f400763caee994c8c4c3.tar.gz |
SF 557704: netrc module can't handle all passwords
Expanded the range of allowable characters to include ascii punctuation.
Allows resource files to have a larger character set for passwords.
(Idea contributed by Bram Moolenaar.)
Diffstat (limited to 'Lib/netrc.py')
-rw-r--r-- | Lib/netrc.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/netrc.py b/Lib/netrc.py index 316a66c886..1d65dbeb89 100644 --- a/Lib/netrc.py +++ b/Lib/netrc.py @@ -30,8 +30,7 @@ class netrc: self.hosts = {} self.macros = {} lexer = shlex.shlex(fp) - # Allows @ in hostnames. Not a big deal... - lexer.wordchars = lexer.wordchars + '.-@' + lexer.wordchars += r"""!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~""" while 1: # Look for a machine, default, or macdef top-level keyword toplevel = tt = lexer.get_token() |