anon-iclr-submission/benchname-bug-localization huggingface dataset:
Repository: hvac/hvac
Issue: hvac import fails

installed hvac-

Response:
**sudo pip install 'hvac[parser]'
**Requirement** already satisfied: hvac[parser] in /usr/local/lib/python2.7/site-packages**

hvac (0.10.12)

python version-
Python 2.7.18 (default, Feb 18 2021, 06:10:44) 
[GCC 4.8.5 20150623 (Red Hat 4.8.5-28)] on linux2

error- 
>>> import hvac
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/site-packages/hvac/__init__.py", line 1, in <module>
    from hvac.v1 import Client
  File "/usr/local/lib/python2.7/site-packages/hvac/v1/__init__.py", line 7, in <module>
    from hvac import aws_utils, exceptions, adapters, utils, api
  File "/usr/local/lib/python2.7/site-packages/hvac/api/__init__.py", line 2, in <module>
    from hvac.api.auth_methods import AuthMethods
  File "/usr/local/lib/python2.7/site-packages/hvac/api/auth_methods/__init__.py", line 18, in <module>
    from hvac.api.auth_methods.cert import Cert
  File "/usr/local/lib/python2.7/site-packages/hvac/api/auth_methods/cert.py", line 244
    **self._adapter._kwargs,
     ^
SyntaxError: invalid syntax




Changed files:
hvac/api/auth_methods/cert.py

diff --git a/hvac/api/auth_methods/cert.py b/hvac/api/auth_methods/cert.py
index 140c662..f83eb1d 100644
--- a/hvac/api/auth_methods/cert.py
+++ b/hvac/api/auth_methods/cert.py
@@ -239,15 +239,19 @@ class Cert(VaultApiBase):
                     tls_update = True
             else:
                 raise e
+
+        additional_request_kwargs = {}
         if tls_update:
-            self._adapter._kwargs = {
-                **self._adapter._kwargs,
-                **{'verify': cacert, 'cert': tuple([cert_pem, key_pem])} # need to define dict as cert is a tuple
+            additional_request_kwargs = {
+                "verify": cacert,
+                # need to define dict as cert is a tuple
+                "cert": tuple([cert_pem, key_pem]),
             }
 
         return self._adapter.login(
             url=api_path,
             json=params,
+            **additional_request_kwargs,
         )
 
     class CertificateAuthError(Exception):