diff options
author | chenghuiyu <yuchenghui@unionpay.com> | 2017-09-13 10:25:46 +0800 |
---|---|---|
committer | chenghuiyu <yuchenghui@unionpay.com> | 2017-09-13 10:25:46 +0800 |
commit | 37bcb98f3eba5c811460e1409d7a31b7521534c2 (patch) | |
tree | c2998df50dd34c14c46ec95932e2825a679bf66d | |
parent | 540c5ca560f1d9195c2e253c58d83f9850c3f7cd (diff) | |
download | pycadf-37bcb98f3eba5c811460e1409d7a31b7521534c2.tar.gz |
Stopping using norm_ns
The usage of 'norm_ns' via identifier is deprecated for
removal. And there is no usage of norm_ns in other
projects [1]. It's safe to remove it now.
[1] http://codesearch.openstack.org/?q=norm_ns&i=nope&files=&repos=
Change-Id: I9dc7683cb2cfa9096c16b888518581ed57c6dd9d
-rw-r--r-- | pycadf/identifier.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/pycadf/identifier.py b/pycadf/identifier.py index 69619eb..c3ed918 100644 --- a/pycadf/identifier.py +++ b/pycadf/identifier.py @@ -16,7 +16,6 @@ import re import uuid import warnings -from debtcollector import removals from oslo_config import cfg import six @@ -44,13 +43,6 @@ def generate_uuid(): return str(uuid.uuid4()) -@removals.remove -def norm_ns(str_id): - """Apply a namespace to the identifier.""" - prefix = CONF.audit.namespace + ':' if CONF.audit.namespace else '' - return prefix + str_id - - def _check_valid_uuid(value): """Checks a value for one or multiple valid uuids joined together.""" |