diff options
author | bashonly <bashonly@protonmail.com> | 2024-10-30 13:40:07 -0500 |
---|---|---|
committer | bashonly <88596187+bashonly@users.noreply.github.com> | 2024-10-30 18:58:50 +0000 |
commit | 88402b714ec124633933737bc156b172a3dec3d6 (patch) | |
tree | 2ba54d621c6243f95e5e8fef7f04dcfce2662919 /test/testdata/netrc/print_netrc.py | |
parent | 5bc5fb2835ea59bdf326bd12176d74d2c7348a95 (diff) |
Fix `--netrc` empty string parsing for Python <=3.10 (#11414)
Ref: https://github.com/python/cpython/commit/15409c720be0503131713e3d3abc1acd0da07378
Closes #11413
Authored by: bashonly, Grub4K
Co-authored-by: Simon Sawicki <contact@grub4k.xyz>
Diffstat (limited to 'test/testdata/netrc/print_netrc.py')
-rw-r--r-- | test/testdata/netrc/print_netrc.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/testdata/netrc/print_netrc.py b/test/testdata/netrc/print_netrc.py new file mode 100644 index 000000000..5c25814f8 --- /dev/null +++ b/test/testdata/netrc/print_netrc.py @@ -0,0 +1,2 @@ +with open('./test/testdata/netrc/netrc', encoding='utf-8') as fp: + print(fp.read()) |