Skip to content

Commit

Permalink
replac xrange with range, which is python3 compatible
Browse files Browse the repository at this point in the history
using 'xrange' in stead of 'range' in py2 has no advantage here
  • Loading branch information
Tom Hendrikx committed Jun 14, 2017
1 parent 510a451 commit ef74d17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eSSP/eSSP.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ def send(self, command, process=True):
prepedstring += command[i][2:]

self._logger.debug("OUT: 0x" + ' 0x'.join([prepedstring[x:x + 2]
for x in xrange(0, len(prepedstring), 2)]))
for x in range(0, len(prepedstring), 2)]))

prepedstring = prepedstring.decode('hex')

Expand Down

0 comments on commit ef74d17

Please sign in to comment.