There was an error while loading. Please reload this page.
1 parent c8cfc76 commit e42f8d8Copy full SHA for e42f8d8
pyconfigparser.py
@@ -142,11 +142,11 @@ def __interpol_variable(self, data):
142
raise ConfigError(f'Environment variable {data} was not found')
143
144
def __is_a_valid_object_key(self, key):
145
- if re.search(ENTITY_NAME_PATTERN, key) is None:
+ if not re.search(ENTITY_NAME_PATTERN, key):
146
raise ConfigError(f'The key {key} is invalid. The entity keys only may have words, number and underscores.')
147
148
def __is_variable(self, data):
149
- return type(data) is str and re.search(VARIABLE_PATTERN, data) is not None
+ return type(data) is str and re.search(VARIABLE_PATTERN, data)
150
151
def __extract_env_variable_key(self, variable):
152
variable = variable[1:]
0 commit comments