Skip to content

Commit

Permalink
Fix Struct() argument 1 must be string, not unicode. (#3375)
Browse files Browse the repository at this point in the history
  • Loading branch information
vanishing authored and douglascamata committed Aug 10, 2016
1 parent 0c3c4c0 commit 72622b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,4 @@
* thebigjc
* JaapMoolenaar
* eevee-github
* g0vanish
4 changes: 2 additions & 2 deletions pokemongo_bot/event_handlers/colored_logging_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def _terminal_width(self):
if self._ioctl is None or self._TIOCGWINSZ is None:
return None

h, w, hp, wp = struct.unpack('HHHH',
h, w, hp, wp = struct.unpack(str('HHHH'),
self._ioctl(0, self._TIOCGWINSZ,
struct.pack('HHHH', 0, 0, 0, 0)))
struct.pack(str('HHHH'), 0, 0, 0, 0)))
return w

0 comments on commit 72622b4

Please sign in to comment.