summaryrefslogtreecommitdiff
path: root/keystoneclient/session.py
diff options
context:
space:
mode:
authorNavid Pustchi <npustchi@gmail.com>2016-05-03 18:54:12 +0000
committerNavid Pustchi <npustchi@gmail.com>2016-05-04 19:45:30 +0000
commitbca112c8ba5636becd6951fbfb8cb8f2474279fe (patch)
tree9c8e9ba8f060f1f4a8f6bd3cb4101a0f9ba7e45e /keystoneclient/session.py
parenta9adca02dbdbf786dd7015f4d3c67c514d757423 (diff)
downloadpython-keystoneclient-bca112c8ba5636becd6951fbfb8cb8f2474279fe.tar.gz
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
Diffstat (limited to 'keystoneclient/session.py')
-rw-r--r--keystoneclient/session.py3
1 files changed, 0 insertions, 3 deletions
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