@@ -36,9 +36,7 @@ def _env_config() -> List[str]:
3636
3737HELPER_PREFIX = "helper:"
3838
39- HELPER_ATTRIBUTES = [
40- "job_token" ,"http_password" ,"private_token" ,"oauth_token"
41- ]
39+ HELPER_ATTRIBUTES = ["job_token" ,"http_password" ,"private_token" ,"oauth_token" ]
4240
4341class ConfigError (Exception ):
4442pass
@@ -202,11 +200,11 @@ def __init__(
202200pass
203201
204202def _get_values_from_helper (self ):
205- """Update attributes, which may get values from an external helper program
206- """
203+ """Update attributes, which may get values from an external helper program"""
207204for attr in HELPER_ATTRIBUTES :
208205value = getattr (self ,attr )
209- if isinstance (value ,str )and value .lower ().strip ().startswith (HELPER_PREFIX ):
206+ _value_lower = value .lower ().strip ()
207+ if isinstance (value ,str )and _value_lower .startswith (HELPER_PREFIX ):
210208helper = value [len (HELPER_PREFIX ) :].strip ()
211209value = subprocess .check_output ([helper ]).decode ("utf-8" ).strip ()
212210setattr (self ,attr ,value )