Skip to content

Commit 8a862ae

Browse files
vazircode-of-kpp
andauthored
Update smpplib/command.py
Co-authored-by: Konstantin <kpp.live+github@gmail.com>
1 parent d73f107 commit 8a862ae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

smpplib/command.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def _generate_string(self, field):
188188
value = chr(0).encode()
189189

190190
setattr(self, field, field_value)
191-
if isinstance(value, bytes):
191+
if isinstance(value, six.binary_type):
192192
return value
193193
return six.b(value)
194194

0 commit comments

Comments
 (0)