Skip to content

Commit

Permalink
Switch unique to default True
Browse files Browse the repository at this point in the history
  • Loading branch information
jwilhelm-godaddy committed May 15, 2018
1 parent 2f6ec57 commit 478cc20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyangbind/lib/yangtypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ class TypedList(collections.MutableSequence):
_list = list()

def __init__(self, *args, **kwargs):
self._unique = kwargs.pop('unique', False)
self._unique = kwargs.pop('unique', True)
self._allowed_type = allowed_type
self._list = list()
if len(args):
Expand Down
2 changes: 1 addition & 1 deletion pyangbind/plugin/pybind.py
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,7 @@ def get_children(ctx, fd, i_children, module, parent, path=str(),
# TypedList (see lib.yangtypes) with a particular set of types allowed.
class_str["name"] = "__%s" % (i["name"])
class_str["type"] = "YANGDynClass"
class_str["arg"] = "unique=True, base="
class_str["arg"] = "base="
if isinstance(i["type"]["native_type"][1], list):
allowed_type = "["
for subtype in i["type"]["native_type"][1]:
Expand Down

0 comments on commit 478cc20

Please sign in to comment.