On Wed, 2011-03-02 at 12:59 +0800, Suqin Huang wrote: > "()" can not connect two seperated line, > remove it, and add "\"
The parenthesis is a valid way to do implicit line continuation in python, I am pretty sure it works. By any chance you had a problem with this particular part part of the code? > Signed-off-by: Suqin Huang <shu...@redhat.com> > --- > client/tests/kvm/kvm_preprocessing.py | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/client/tests/kvm/kvm_preprocessing.py > b/client/tests/kvm/kvm_preprocessing.py > index 2defb09..c814d3c 100644 > --- a/client/tests/kvm/kvm_preprocessing.py > +++ b/client/tests/kvm/kvm_preprocessing.py > @@ -30,8 +30,8 @@ def preprocess_image(test, params): > if params.get("force_create_image") == "yes": > logging.debug("'force_create_image' specified; creating image...") > create_image = True > - elif (params.get("create_image") == "yes" and not > - os.path.exists(image_filename)): > + elif params.get("create_image") == "yes" and not \ > + os.path.exists(image_filename): > logging.debug("Creating image...") > create_image = True > > > _______________________________________________ > Autotest mailing list > Autotest@test.kernel.org > http://test.kernel.org/cgi-bin/mailman/listinfo/autotest _______________________________________________ Autotest mailing list Autotest@test.kernel.org http://test.kernel.org/cgi-bin/mailman/listinfo/autotest