1
0
mirror of https://github.com/httpie/cli.git synced 2025-08-10 22:42:05 +02:00

Minor clean-up (#1078)

- Remove default arguments to `open()`.
- Make use of `pytest` mechanisms for temporary folders.
This commit is contained in:
Mickaël Schoentgen
2021-05-29 12:06:06 +02:00
committed by GitHub
parent 611b278b63
commit a61f9e1114
8 changed files with 38 additions and 43 deletions

View File

@@ -84,7 +84,7 @@ class BaseConfigDict(dict):
def load(self):
config_type = type(self).__name__.lower()
try:
with self.path.open('rt') as f:
with self.path.open() as f:
try:
data = json.load(f)
except ValueError as e: