Skip to content

Commit

Permalink
Linting: resolve pylint R1732 suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
jayaddison committed Mar 17, 2024
1 parent 2a21424 commit dccfe9f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pywisetransfer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ def __init__(
raise ValueError(
"Please provide only one of pywisetransfer.private_key_file or private_key_data"
)
private_key_data = open(private_key_file, "rb").read()
with open(private_key_file, "rb") as f:
private_key_data = f.read()

self.api_key = api_key
self.environment = environment
Expand Down

0 comments on commit dccfe9f

Please sign in to comment.