From bca112c8ba5636becd6951fbfb8cb8f2474279fe Mon Sep 17 00:00:00 2001 From: Navid Pustchi Date: Tue, 3 May 2016 18:54:12 +0000 Subject: Fixing D202 and D203 PEP257 violation. Currently tox ignores D202 and D203. D202: No blank lines allowed after function docstring. D203: 1 blank required before class docstring. This change removes D202 and D203 ignores in tox and fix violations. Change-Id: I97ef88c9cfd56774e47f789cbbcf8ccfe85d7737 --- keystoneclient/session.py | 3 --- 1 file changed, 3 deletions(-) (limited to 'keystoneclient/session.py') diff --git a/keystoneclient/session.py b/keystoneclient/session.py index ebcf854..522a533 100644 --- a/keystoneclient/session.py +++ b/keystoneclient/session.py @@ -310,7 +310,6 @@ class Session(object): :returns: The response to the request. """ - headers = kwargs.setdefault('headers', dict()) if authenticated is None: @@ -563,12 +562,10 @@ class Session(object): functions without session arguments. """ - warnings.warn( 'Session.construct() is deprecated as of the 1.7.0 release in ' 'favor of using session constructor and may be removed in the ' '2.0.0 release.', DeprecationWarning) - return cls._construct(kwargs) @classmethod -- cgit v1.2.1