summaryrefslogtreecommitdiff
path: root/troveclient/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'troveclient/utils.py')
-rw-r--r--troveclient/utils.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/troveclient/utils.py b/troveclient/utils.py
index b5b0504..65accef 100644
--- a/troveclient/utils.py
+++ b/troveclient/utils.py
@@ -26,7 +26,6 @@ import prettytable
import six
from oslo_utils import encodeutils
-from oslo_utils import strutils
from troveclient.openstack.common.apiclient import exceptions
@@ -278,21 +277,6 @@ def safe_issubclass(*args):
return False
-# http://code.activestate.com/recipes/
-# 577257-slugify-make-a-string-usable-in-a-url-or-filename/
-def slugify(value):
- """Converts a string usable in a url or filename.
-
- Normalizes string, converts to lowercase, removes non-alpha characters,
- and converts spaces to hyphens.
-
- From Django's "django/template/defaultfilters.py".
-
- Make use strutils.to_slug from openstack common
- """
- return strutils.to_slug(value, incoming=None, errors="strict")
-
-
def is_uuid_like(val):
"""Returns validation of a value as a UUID.