Note: The default ITS GitLab runner is a shared resource and is subject to slowdowns during heavy usage.
You can run your own GitLab runner that is dedicated just to your group if you need to avoid processing delays.

Commit 3f3a4943 authored by Bob Harold's avatar Bob Harold
Browse files

use 'with'

parent ec12a92f
Pipeline #70732 passed with stages
in 1 minute and 2 seconds
......@@ -91,8 +91,11 @@ def upload_response_policy_items(my_token, host, parent_id, filename):
querystring = {"parentId": parent_id}
files = {"data": open(filename, "rb")}
my_response =, headers=headers, params=querystring, files=files)
with open(filename, "rb") as f:
files = {"data": f}
my_response =
url, headers=headers, params=querystring, files=files
return my_response.text
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment