Skip to content

Commit

Permalink
Remove erroreous version, and debugging output (robshakir#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
robshakir committed Apr 8, 2016
1 parent a0c28d7 commit 3de63b3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion pyangbind/lib/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
__version__ = "0.1.1"
5 changes: 1 addition & 4 deletions pyangbind/lib/yangtypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,8 @@ def in_range_check(low_high_tuples, length=False):
if all_none:
raise AttributeError("Cannot specify a range that is all max " +
"and min")
print low_high_tuples

def range_check(value):
print "value was %s in range check" % (value)
if length and isinstance(value, bitarray):
value = value.length()
elif length:
Expand Down Expand Up @@ -308,12 +307,10 @@ def in_dictionary_check(dictionary):

if val is not False:
for test in self._restriction_tests:
print "checking %s" % test
passed = False
if test(val) is not False:
passed = True
break
print" result %s" % passed
if not passed:
raise ValueError("%s does not match a restricted type" % val)

Expand Down

0 comments on commit 3de63b3

Please sign in to comment.