summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Sotoudeh <matthew@masot.net>2023-07-27 15:25:03 -0700
committerMatthew Sotoudeh <matthew@masot.net>2023-07-27 15:25:03 -0700
commit678b0d4a2ec15db0735d08ebafec55605ce0a688 (patch)
treeed803fed879a262bbf7382df074f1e999b9e9469
parent6f645bed54bd328d8a4075aad498892b0164c713 (diff)
simplify refcounting
-rwxr-xr-xpython/examples/refcounting/dietpass4
1 files changed, 1 insertions, 3 deletions
diff --git a/python/examples/refcounting/dietpass b/python/examples/refcounting/dietpass
index 9d6a77f..37f44c4 100755
--- a/python/examples/refcounting/dietpass
+++ b/python/examples/refcounting/dietpass
@@ -71,8 +71,6 @@ def ptr_exprs(name, ty):
for i in range(int(ty.length)):
result.extend(ptr_exprs(f"(({name})[{i}])", ty.base))
return result
- else:
- print(ty.classify(), file=sys.stderr)
- raise NotImplementedError
+ else: raise NotImplementedError
main()
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback