mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Param.__repr__() now uses util.make_repr()
This commit is contained in:
@@ -28,6 +28,7 @@ from plugable import lock, check_name
|
|||||||
import errors
|
import errors
|
||||||
from errors import check_type, check_isinstance, raise_TypeError
|
from errors import check_type, check_isinstance, raise_TypeError
|
||||||
import ipa_types
|
import ipa_types
|
||||||
|
from util import make_repr
|
||||||
|
|
||||||
|
|
||||||
RULE_FLAG = 'validation_rule'
|
RULE_FLAG = 'validation_rule'
|
||||||
@@ -450,11 +451,10 @@ class Param(plugable.ReadOnly):
|
|||||||
return value
|
return value
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return '%s(%r, %s())' % (
|
"""
|
||||||
self.__class__.__name__,
|
Return an expresion that could construct this `Param` instance.
|
||||||
self.name,
|
"""
|
||||||
self.type.name,
|
return make_repr(self.__class__.__name__, self.name, **self.__override)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
def create_param(spec):
|
def create_param(spec):
|
||||||
|
|||||||
Reference in New Issue
Block a user