Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

isdigit() method should be called for a string. Issue #5 #45

Merged
1 commit merged into from Apr 23, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sdk/python/ydk/providers/_decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def _to_real_union_type_helper(self, rt, member, entity):
return rt[0].text
elif contained_member.ptype == 'long' and rt[0].text is not None and rt[0].text.isdigit():
return long(rt[0].text)
elif contained_member.ptype == 'int' and rt[0].text is not None and rt[0].isidigit():
elif contained_member.ptype == 'int' and rt[0].text is not None and rt[0].text.isdigit():
return int(rt[0].text)
elif contained_member.ptype == 'Decimal64' and rt[0].text is not None:
try:
Expand Down
2 changes: 1 addition & 1 deletion yang/ydktest/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ module ydktest-sanity {

leaf enum-value {
description "this is enum type value";
type Ydk-Enum-test;
type Ydk-Enum-test;
}

leaf identity-ref-value {
Expand Down
86 changes: 0 additions & 86 deletions yang/ydktest/[email protected]

This file was deleted.