Re: [KVM-AUTOTEST PATCH 4/5] kvm_config: add helper to raise exception informing line number

2011-01-11 Thread Eduardo Habkost
On Tue, Jan 11, 2011 at 01:48:22AM -0200, Lucas Meneghel Rodrigues wrote: On Thu, 2011-01-06 at 14:12 -0200, Eduardo Habkost wrote: +for num,line in enumerate(str.splitlines(), 1): ^ enumerate in py 2.4 takes exactly 1 argument, so it's not possible to provide the enumerate start

Re: [KVM-AUTOTEST PATCH 4/5] kvm_config: add helper to raise exception informing line number

2011-01-10 Thread Lucas Meneghel Rodrigues
On Thu, 2011-01-06 at 14:12 -0200, Eduardo Habkost wrote: From: Eduardo Habkost ehabk...@raisama.net Useful for syntax or other errors on the config file. We want to tell the user on which file:line the error is located. Signed-off-by: Eduardo Habkost ehabk...@raisama.net ---

[KVM-AUTOTEST PATCH 4/5] kvm_config: add helper to raise exception informing line number

2011-01-06 Thread Eduardo Habkost
From: Eduardo Habkost ehabk...@raisama.net Useful for syntax or other errors on the config file. We want to tell the user on which file:line the error is located. Signed-off-by: Eduardo Habkost ehabk...@raisama.net --- client/tests/kvm/kvm_config.py | 16 +++- 1 files changed, 15