Commit 7423709
committed
pyrepl/unix_eventqueue.py: Fix Python 3 ord(char) issue
In Python 3, byte strings are composed of ints, so no need to call ord() on the
elements. Solves a test failure:
testing/test_unix_reader.py:11: in test_simple
> q.push(c)
pyrepl/unix_eventqueue.py:103: in push
> self.buf.append(ord(char))
E TypeError: ord() expected string of length 1, but int found1 parent ee767d8 commit 7423709
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
| 104 | + | |
104 | 105 | | |
105 | 106 | | |
106 | 107 | | |
| |||
0 commit comments