Skip to content
This repository has been archived by the owner on Oct 16, 2023. It is now read-only.

Commit

Permalink
gh-981: Tidy up warning
Browse files Browse the repository at this point in the history
  • Loading branch information
t92549 committed Jun 17, 2022
1 parent 20f8efb commit d6fb9f7
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions python-shell/src/gafferpy/gaffer_connector_pki.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,15 @@

from gafferpy import gaffer_connector

warnings.warn("This connector is deprecated, please use the standard one with client_class='pki'")

warnings.warn("""
This connector is deprecated, instead use gaffer_connector.GafferConnector(
host,
client_class='pki',
config={
'pki': pki,
'protocol': protocol
})
""")
class GafferConnector(gaffer_connector.GafferConnector):
def __init__(self, host, pki, protocol=None, verbose=False, headers={}):
"""
Expand Down

0 comments on commit d6fb9f7

Please sign in to comment.