wendlers / mpfshell

A simple shell based file explorer for ESP8266 Micropython based devices ⛺
MIT License
396 stars 84 forks source link

Fixed crash of exec command in Python 3.5 #16

Closed GHPS closed 7 years ago

GHPS commented 7 years ago

In Python 3.5 the exec function (e.g. exec print(1+2)) fails with "a bytes-like object is required, not 'str'" and crashes Mpfshell. The crash is caused by data_consumer - the type of "data".