Skip to content

Commit 0819a24

Browse files
author
ldx
committed
Remove unnecessary abstraction.
1 parent b88763c commit 0819a24

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

iptc/ip4tc.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -580,8 +580,8 @@ def __eq__(self, targ):
580580
self.target.u.user.name == "RETURN" or
581581
self.target.u.user.name == "ERROR"):
582582
return True
583-
if (self.target_buf[basesz:self.usersize] ==
584-
targ.target_buf[basesz:targ.usersize]):
583+
if (self._target_buf[basesz:self.usersize] ==
584+
targ._target_buf[basesz:targ.usersize]):
585585
return True
586586
return False
587587

@@ -645,11 +645,6 @@ def _get_target(self):
645645
target = property(_get_target)
646646
"""This is the C structure used by the extension."""
647647

648-
def _get_target_buf(self):
649-
return self._target_buf
650-
target_buf = property(_get_target_buf)
651-
"""This is the buffer holding the C structure used by the extension."""
652-
653648

654649
class Policy(object):
655650
"""

0 commit comments

Comments
 (0)