Remove URI.value
The interface was deprecated 7 years ago[1] and enough time passed
since then.
[1] ad93ae1f07
Change-Id: I1c517e4d4d3e00657b10cbd114ab336b329d4df4
This commit is contained in:
@@ -25,7 +25,6 @@ import re
|
||||
import warnings
|
||||
|
||||
import abc
|
||||
from debtcollector import removals
|
||||
import netaddr
|
||||
import rfc3986
|
||||
|
||||
@@ -959,24 +958,8 @@ class URI(ConfigType):
|
||||
raise ValueError("Value '%s' exceeds maximum length %d" %
|
||||
(value, self.max_length))
|
||||
|
||||
# NOTE(dhellmann): self.value is deprecated, and we don't want
|
||||
# to trigger a deprecation warning ourselves so we modify
|
||||
# self._value directly.
|
||||
self._value = value
|
||||
return value
|
||||
|
||||
@removals.removed_property
|
||||
def value(self):
|
||||
return self._value
|
||||
|
||||
@value.setter
|
||||
def value(self, newval):
|
||||
self._value = newval
|
||||
|
||||
@value.deleter
|
||||
def value(self):
|
||||
del self._value
|
||||
|
||||
def __repr__(self):
|
||||
return 'URI'
|
||||
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
upgrade:
|
||||
- |
|
||||
The ``value`` property of the ``oslo_config.types.URI`` class has been
|
||||
removed. This was deprecated in oslo.config 6.2.0 .
|
||||
@@ -2,7 +2,6 @@
|
||||
# date but we do not test them so no guarantee of having them all correct. If
|
||||
# you find any incorrect lower bounds, let us know or propose a fix.
|
||||
|
||||
debtcollector>=1.2.0 # Apache-2.0
|
||||
netaddr>=0.7.18 # BSD
|
||||
stevedore>=1.20.0 # Apache-2.0
|
||||
oslo.i18n>=3.15.3 # Apache-2.0
|
||||
|
||||
Reference in New Issue
Block a user