micropython/micropython — pull request #831 by dhylands (2014-08-26 19:47:46+00:00)
Title: Make int(b'123') work properly.

int(b'123', 10) was working properly, but int(b'123) was failing.

I wasn't sure exactly how/if you'd want to fix objstr.c (it has a static is_str_or_bytes function).