ia64/xen-unstable
changeset 7645:5d9de9f4baf4
Added assertion, to stop it blowing up more obscurely a little later.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Signed-off-by: Ewan Mellor <ewan@xensource.com>
author | emellor@leeni.uk.xensource.com |
---|---|
date | Mon Nov 07 12:30:35 2005 +0100 (2005-11-07) |
parents | 43fbea30b5c8 |
children | 365245f2a106 |
files | tools/python/xen/xend/xenstore/xstransact.py |
line diff
1.1 --- a/tools/python/xen/xend/xenstore/xstransact.py Mon Nov 07 12:30:16 2005 +0100 1.2 +++ b/tools/python/xen/xend/xenstore/xstransact.py Mon Nov 07 12:30:35 2005 +0100 1.3 @@ -11,6 +11,8 @@ 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__.