Use in dict rather than "in dict.keys()". Fix linting warnings about "not in". (#8298)

* Fixed a few linting warnings for if not x in y.

These should have been caught by pylint, but weren't.

* Replaced "x in y.keys()" with "x in y".

It's much faster, and more Pythonic.
This commit is contained in:
Mads Jensen
2020-09-19 11:35:49 +02:00
committed by GitHub
parent b551b6ee73
commit 501df0dc4e
10 changed files with 18 additions and 18 deletions
@@ -57,7 +57,7 @@ class Proxy(configurators_common.Proxy):
def _prepare_configurator(self):
"""Prepares the Apache plugin for testing"""
for k in entrypoint.ENTRYPOINT.OS_DEFAULTS.keys():
for k in entrypoint.ENTRYPOINT.OS_DEFAULTS:
setattr(self.le_config, "apache_" + k,
entrypoint.ENTRYPOINT.OS_DEFAULTS[k])