freemyipod r583 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r582‎ | r583 | r584 >
Date:22:35, 11 February 2011
Author:farthen
Status:new
Tags:
Comment:
emCORE tools: Fix libemcore.run for Python 3
Modified paths:
  • /emcore/trunk/tools/libemcore.py (modified) (history)

Diff [purge]

Index: emcore/trunk/tools/libemcore.py
@@ -455,7 +455,7 @@
456456 @command()
457457 def run(self, app):
458458 """ Uploads and runs the emCORE app in the string 'app' """
459 - if app[:8] != "emCOexec":
 459+ if app[:8].decode("ascii") != "emCOexec":
460460 raise ArgumentError("The specified app is not an emCORE application")
461461 baseaddr = self.malloc(len(app))
462462 self.write(baseaddr, app)