Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb5f43c8

Browse files
committed
chore: make lint happy
1 parent732e49c commitb5f43c8

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

‎gitlab/config.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ def _env_config() -> List[str]:
3636

3737
HELPER_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

4341
classConfigError(Exception):
4442
pass
@@ -202,11 +200,11 @@ def __init__(
202200
pass
203201

204202
def_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"""
207204
forattrinHELPER_ATTRIBUTES:
208205
value=getattr(self,attr)
209-
ifisinstance(value,str)andvalue.lower().strip().startswith(HELPER_PREFIX):
206+
_value_lower=value.lower().strip()
207+
ifisinstance(value,str)and_value_lower.startswith(HELPER_PREFIX):
210208
helper=value[len(HELPER_PREFIX) :].strip()
211209
value=subprocess.check_output([helper]).decode("utf-8").strip()
212210
setattr(self,attr,value)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp