Skip to content

Commit

Permalink
python: Use correct decorator syntax in HTBQdisc
Browse files Browse the repository at this point in the history
Fixes: 87d3709 ("netlink.nlattr re-implemented in more pythonic way")

#359
  • Loading branch information
dpward authored and thom311 committed Aug 30, 2023
1 parent 6b2533c commit 9aab12d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/netlink/route/qdisc/htb.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def default_class(self, value):
capi.rtnl_htb_set_defcls(self._qdisc._rtnl_qdisc, int(value))

@property
@netlink.nlattr("r2q", type=int)
@netlink.nlattr(type=int)
def r2q(self):
return capi.rtnl_htb_get_rate2quantum(self._qdisc._rtnl_qdisc)

Expand Down

0 comments on commit 9aab12d

Please sign in to comment.