Skip to content

Commit ded1136

Browse files
Merge pull request #11 from joostlek/patch-1
Allow subclassed strings to be used
2 parents 27210df + c9af179 commit ded1136

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

orvibo/s20.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def __init__(self, host, mac = None):
136136
if not mac:
137137
(self._mac, self._mac_reversed) = self._discover_mac()
138138
else:
139-
if type(mac) is str:
139+
if isinstance(mac, str):
140140
self._mac = binascii.a2b_hex(''.join(mac.split(':')))
141141
else:
142142
self._mac = mac

0 commit comments

Comments
 (0)