Skip to content

Commit

Permalink
Fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
andrasmaroy committed Nov 19, 2019
1 parent 5873821 commit fc722df
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion pconf/store/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def __handle_docker_secret(self, key, value):
if key.endswith(postfix):
try:
with open(value, "r") as f:
self.vars[key[0 : -len(postfix)]] = f.read().strip()
self.vars[key[0 : -len(postfix)]] = f.read().strip() # noqa: E203
except IOError:
warn("IOError when opening {}".format(value), UserWarning)

Expand Down
4 changes: 0 additions & 4 deletions tests/test_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,8 @@
TEST_DOCKER_SECRETS_PATH = str(list(TEST_DOCKER_SECRETS_RESULT.values())[0])

if version_info.major < 3:
import __builtin__

MOCK_OPEN_FUNCTION = "__builtin__.open"
else:
import builtins

MOCK_OPEN_FUNCTION = "builtins.open"


Expand Down

0 comments on commit fc722df

Please sign in to comment.