summaryrefslogtreecommitdiff
path: root/keystoneclient/_discover.py
diff options
context:
space:
mode:
authorMorgan Fainberg <morgan.fainberg@gmail.com>2017-08-07 13:13:31 -0700
committerMorgan Fainberg <morgan.fainberg@gmail.com>2017-08-07 13:14:55 -0700
commit4a43aa02b86e3203bb6614382ef598926a1464cb (patch)
treed4382b1c9460778afda33621af978c2c3bec3edf /keystoneclient/_discover.py
parent5d0c29fc912caf18e78e6e153d3af4e554dfb0de (diff)
downloadpython-keystoneclient-4a43aa02b86e3203bb6614382ef598926a1464cb.tar.gz
Remove use of positional decorator
The positional decorator results in poorly maintainable code in a misguided effort to emulate python3's key-word-arg only notation and functionality. This patch removes keystoneclient's dependance on the positional decorator. Change-Id: I9e691cc8b0c04992f4a8dabd67e1b413d3220d23
Diffstat (limited to 'keystoneclient/_discover.py')
-rw-r--r--keystoneclient/_discover.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/keystoneclient/_discover.py b/keystoneclient/_discover.py
index 69eed9a..a27236c 100644
--- a/keystoneclient/_discover.py
+++ b/keystoneclient/_discover.py
@@ -24,8 +24,6 @@ raw data specified in version discovery responses.
import logging
import re
-from positional import positional
-
from keystoneclient import exceptions
from keystoneclient.i18n import _
@@ -33,7 +31,6 @@ from keystoneclient.i18n import _
_LOGGER = logging.getLogger(__name__)
-@positional()
def get_version_data(session, url, authenticated=None):
"""Retrieve raw version data from a url."""
headers = {'Accept': 'application/json'}
@@ -141,7 +138,6 @@ class Discover(object):
DEPRECATED_STATUSES = ('deprecated',)
EXPERIMENTAL_STATUSES = ('experimental',)
- @positional()
def __init__(self, session, url, authenticated=None):
self._data = get_version_data(session, url,
authenticated=authenticated)