Merge pull request #430 from paalbra/master

Fix missing f in f-string
pull/431/head
Raphaël Vinot 2019-08-01 15:53:17 +02:00 committed by GitHub
commit a3a6e3cfd5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1841,7 +1841,7 @@ class ExpandedPyMISP(PyMISP):
url = f'{url}/{to_append_url}'
req = requests.Request(request_type, url, data=data, params=params)
with requests.Session() as s:
user_agent = 'PyMISP {__version__} - Python {".".join(str(x) for x in sys.version_info[:2])}'
user_agent = f'PyMISP {__version__} - Python {".".join(str(x) for x in sys.version_info[:2])}'
if self.tool:
user_agent = f'{user_agent} - {self.tool}'
req.auth = self.auth