Fix --netrc empty string parsing for Python <=3.10 (#11414)
Ref: 15409c720b
Closes #11413
Authored by: bashonly, Grub4K
Co-authored-by: Simon Sawicki <contact@grub4k.xyz>
This commit is contained in:
parent
5bc5fb2835
commit
88402b714e
4 changed files with 25 additions and 0 deletions
4
test/testdata/netrc/netrc
vendored
Normal file
4
test/testdata/netrc/netrc
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
machine normal_use login user password pass
|
||||
machine empty_user login "" password pass
|
||||
machine empty_pass login user password ""
|
||||
machine both_empty login "" password ""
|
||||
2
test/testdata/netrc/print_netrc.py
vendored
Normal file
2
test/testdata/netrc/print_netrc.py
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
with open('./test/testdata/netrc/netrc', encoding='utf-8') as fp:
|
||||
print(fp.read())
|
||||
Loading…
Add table
Add a link
Reference in a new issue