Deprecate the baseclient.Client

We don't want to support other clients subclassing this. Deprecate it
for removal.

As far as I know noone else is using this class.

Change-Id: Iad0ea860bd07c657d7094018c037b003ea92dc28
Implements: bp deprecate-to-ksa
This commit is contained in:
Jamie Lennox
2015-12-17 12:02:37 +11:00
parent 063f17265a
commit 65b348e945
2 changed files with 8 additions and 1 deletions

View File

@@ -10,10 +10,17 @@
# License for the specific language governing permissions and limitations
# under the License.
import warnings
class Client(object):
def __init__(self, session):
warnings.warn(
'keystoneclient.baseclient.Client is deprecated as of the 2.1.0 '
'release. It will be removed in future releases.',
DeprecationWarning)
self.session = session
def request(self, url, method, **kwargs):

View File

@@ -379,7 +379,7 @@ class HTTPClient(baseclient.Client, base.BaseAuthPlugin):
session = client_session.Session._construct(kwargs)
session.auth = self
super(HTTPClient, self).__init__(session=session)
self.session = session
self.domain = ''
self.debug_log = debug