Skip to content

Commit a12cdcf

Browse files
committed
tgalal#3125 pull request
1 parent 5dd6113 commit a12cdcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

yowsup/layers/coder/encoder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def writeListStart(self, i, data):
107107
self.writeInt16(i, data)
108108

109109
def writeToken(self, token, data):
110-
if token <= 255 and token >=0:
110+
if 255 >= token >=0:
111111
data.append(token)
112112
else:
113113
raise ValueError("Invalid token: %s" % token)

0 commit comments

Comments
 (0)