Skip to content

Commit

Permalink
Merge pull request #41 from andrewgho/handle_right_angle_bracket
Browse files Browse the repository at this point in the history
Handle right angle bracket in uploaded file (fix #27)
  • Loading branch information
4refr0nt committed Mar 22, 2016
2 parents 9eb1f26 + 9523f0f commit fcb2450
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions luatool/luatool.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ def writer(self, data):
def performcheck(self, expected):
line = ''
char = ''
i = -1
while char != chr(62): # '>'
char = self.read(1)
if char == '':
Expand All @@ -78,6 +79,9 @@ def performcheck(self, expected):
line = ''
else:
line += char
if char == chr(62) and expected[i] == char:
char = ''
i += 1


class SerialTransport(AbstractTransport):
Expand Down

0 comments on commit fcb2450

Please sign in to comment.