Skip to content

Commit

Permalink
bytes encode Path
Browse files Browse the repository at this point in the history
  • Loading branch information
magnusuMET committed Nov 4, 2024
1 parent ab08bba commit e75caa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/netCDF4/_netCDF4.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1322,7 +1322,7 @@ if __has_nc_rc_set__:
if __has_nc_rc_set__:
for path in [pathlib.Path(".netrc"), pathlib.Path.home().joinpath(".netrc")]:
if path.exists():
if nc_rc_set("HTTP.NETRC", _strencode(path)) != 0:
if nc_rc_set("HTTP.NETRC", bytes(path)) != 0:
raise RuntimeError('error setting path to .netrc file')
break

Expand Down

0 comments on commit e75caa2

Please sign in to comment.