ia64/xen-unstable

changeset 12656:1b501311c778

Move the assert under the protection of the in_transaction flag.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author Ewan Mellor <ewan@xensource.com>
date Wed Nov 29 12:15:45 2006 +0000 (2006-11-29)
parents 07e3f39eaf10
children 2773c39df9a6
files tools/python/xen/xend/xenstore/xstransact.py
line diff
     1.1 --- a/tools/python/xen/xend/xenstore/xstransact.py	Wed Nov 29 12:14:45 2006 +0000
     1.2 +++ b/tools/python/xen/xend/xenstore/xstransact.py	Wed Nov 29 12:15:45 2006 +0000
     1.3 @@ -11,11 +11,12 @@ from xen.xend.xenstore.xsutil import xsh
     1.4  class xstransact:
     1.5  
     1.6      def __init__(self, path = ""):
     1.7 -        assert path is not None
     1.8          
     1.9          self.in_transaction = False # Set this temporarily -- if this
    1.10                                      # constructor fails, then we need to
    1.11                                      # protect __del__.
    1.12 +
    1.13 +        assert path is not None
    1.14          self.path = path.rstrip("/")
    1.15          self.transaction = xshandle().transaction_start()
    1.16          self.in_transaction = True