diff options
| author | serpilliere <serpilliere@users.noreply.github.com> | 2015-02-17 12:23:42 +0100 |
|---|---|---|
| committer | serpilliere <serpilliere@users.noreply.github.com> | 2015-02-17 12:23:42 +0100 |
| commit | c47688a9e8e049165a76b9bb3281c0381fa2d12f (patch) | |
| tree | c1f68a979bfac603a3beccea678d4b8cfe3391dc /miasm2/analysis/debugging.py | |
| parent | 13a3fcbb168589703d56d6c36312d788f68786e3 (diff) | |
| parent | 0fcd954e10351f914b37a96d498aec39feb30b24 (diff) | |
| download | miasm-c47688a9e8e049165a76b9bb3281c0381fa2d12f.tar.gz miasm-c47688a9e8e049165a76b9bb3281c0381fa2d12f.zip | |
Merge pull request #71 from commial/pylinting
Pylinting
Diffstat (limited to 'miasm2/analysis/debugging.py')
| -rw-r--r-- | miasm2/analysis/debugging.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/miasm2/analysis/debugging.py b/miasm2/analysis/debugging.py index bc422954..61e2ed95 100644 --- a/miasm2/analysis/debugging.py +++ b/miasm2/analysis/debugging.py @@ -446,20 +446,20 @@ class DebugCmd(cmd.Cmd, object): def help_dump(self): print "Dump <addr> [size]. Dump size bytes at addr." - def do_run(self, arg): + def do_run(self, _): self.dbg.run() def help_run(self): print "Launch or continue the current program" - def do_exit(self, s): + def do_exit(self, _): return True - def do_exec(self, l): + def do_exec(self, line): try: - print eval(l) - except Exception, e: - print "*** Error: %s" % e + print eval(line) + except Exception, error: + print "*** Error: %s" % error def help_exec(self): print "Exec a python command." |