Skip to content

Commit

Permalink
fix: telnetlib broke for python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
knipknap committed Mar 29, 2017
1 parent 3bcdac2 commit 36f72d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Exscript/protocols/telnetlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,8 +514,8 @@ def rawq_getchar(self):
self.fill_rawq()
if self.eof:
raise EOFError
c = self.rawq[self.irawq]
self.irawq = self.irawq + 1
c = bytes((self.rawq[self.irawq],))
self.irawq += 1
if self.irawq >= len(self.rawq):
self.rawq = b''
self.irawq = 0
Expand Down

0 comments on commit 36f72d5

Please sign in to comment.