File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 8
8
import io
9
9
import logging
10
10
import os
11
- import requests
12
11
import signal
13
12
import subprocess # nosec
14
13
import sys
34
33
35
34
import argcomplete
36
35
import coloredlogs
36
+ import requests
37
37
import ruamel .yaml
38
38
from ruamel .yaml .comments import CommentedMap , CommentedSeq
39
39
from ruamel .yaml .main import YAML
@@ -176,8 +176,8 @@ def _signal_handler(signum: int, _: Any) -> None:
176
176
177
177
def append_word_to_default_user_agent (word : str ) -> None :
178
178
"""Append the specified word to the requests http user agent string if it's not already there."""
179
- original_function = requests .utils .default_user_agent ;
180
- suffix = f' { word } ' ;
179
+ original_function = requests .utils .default_user_agent
180
+ suffix = f" { word } "
181
181
if not original_function ().endswith (suffix ):
182
182
requests .utils .default_user_agent = lambda * args : original_function (* args ) + suffix
183
183
You can’t perform that action at this time.
0 commit comments