Merge "Deprecate the baseclient.Client"

This commit is contained in:
Jenkins
2016-01-14 05:26:06 +00:00
committed by Gerrit Code Review
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