summaryrefslogtreecommitdiff
path: root/oslo_db/sqlalchemy/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'oslo_db/sqlalchemy/utils.py')
-rw-r--r--oslo_db/sqlalchemy/utils.py25
1 files changed, 0 insertions, 25 deletions
diff --git a/oslo_db/sqlalchemy/utils.py b/oslo_db/sqlalchemy/utils.py
index b4e0664..4266ba3 100644
--- a/oslo_db/sqlalchemy/utils.py
+++ b/oslo_db/sqlalchemy/utils.py
@@ -54,31 +54,6 @@ LOG = logging.getLogger(__name__)
_DBURL_REGEX = re.compile(r"[^:]+://([^:]+):([^@]+)@.+")
-def get_callable_name(function):
- # TODO(harlowja): Replace this once
- # it is possible to use https://review.openstack.org/#/c/122495/ which is
- # a more complete and expansive module that does a similar thing...
- try:
- method_self = six.get_method_self(function)
- except AttributeError:
- method_self = None
- if method_self is not None:
- if isinstance(method_self, six.class_types):
- im_class = method_self
- else:
- im_class = type(method_self)
- try:
- parts = (im_class.__module__, function.__qualname__)
- except AttributeError:
- parts = (im_class.__module__, im_class.__name__, function.__name__)
- else:
- try:
- parts = (function.__module__, function.__qualname__)
- except AttributeError:
- parts = (function.__module__, function.__name__)
- return '.'.join(parts)
-
-
def sanitize_db_url(url):
match = _DBURL_REGEX.match(url)
if match: