summaryrefslogtreecommitdiffstatshomepage
path: root/examples/hwapi
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-12-22 10:39:06 +1100
committerDamien George <damien.p.george@gmail.com>2016-12-22 10:39:06 +1100
commitf4aebafe7ae033d6bcde87d71108f488ed4a3251 (patch)
treeeecd4dac48715e60579e86eb626ca89ba2d5fcf4 /examples/hwapi
parentb9c4783273bfe794a6be2be6b02aedcd9bd80d64 (diff)
downloadmicropython-f4aebafe7ae033d6bcde87d71108f488ed4a3251.tar.gz
micropython-f4aebafe7ae033d6bcde87d71108f488ed4a3251.zip
py/lexer: Remove unnecessary check for EOF in lexer's next_char func.
This check always fails (ie chr0 is never EOF) because the callers of this function never call it past the end of the input stream. And even if they did it would be harmless because 1) reader.readbyte must continue to return an EOF char if the stream is exhausted; 2) next_char would just count the subsequent EOF's as characters worth 1 column.
Diffstat (limited to 'examples/hwapi')
0 files changed, 0 insertions, 0 deletions