Skip to content

Commit 5c1644b

Browse files
committed
remove obsolete __nonzero__()-method in can.Message
1 parent bb0103f commit 5c1644b

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

can/message.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,13 +138,8 @@ def __len__(self):
138138
return self.dlc
139139

140140
def __bool__(self):
141-
# For Python 3
142141
return True
143142

144-
def __nonzero__(self):
145-
# For Python 2
146-
return self.__bool__()
147-
148143
def __repr__(self):
149144
args = ["timestamp={}".format(self.timestamp),
150145
"arbitration_id={:#x}".format(self.arbitration_id),

0 commit comments

Comments
 (0)