Parent: 9d2f3c94d66fc50b0ba948db04a78ab697d6edd1
Author: Johan Hedberg <johan.hedberg@intel.com>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2012-06-18 14:09:57
Tree: d486714bebddda1b85764a4f65e2bba79965ae1d
simple-agent: Fix input with python version < 3.0 input() in python < 3.0 is the same as eval(raw_input()) which is not what we want. With python >= 3.0 in turn raw_input doesn't exist. This patch fixes support for both versions by a simple try-except clause.
Diffstat
| M | test/simple-agent | | | 16 | +++++++++++- - - - - |
1 files changed, 11 insertions(+), 5 deletions(-)