diff -r 9ced12c28e05 tools/python/xen/xend/XendConfig.py --- a/tools/python/xen/xend/XendConfig.py Wed Jul 22 14:37:30 2009 +0100 +++ b/tools/python/xen/xend/XendConfig.py Thu Jul 23 11:15:59 2009 +0900 @@ -2087,7 +2087,7 @@ def handle_fileuris(self): for arg in [('PV_kernel', 'use_tmp_kernel'), ('PV_ramdisk', 'use_tmp_ramdisk')]: - if self[arg[0]] != None: + if self[arg[0]]: self[arg[0]], self[arg[1]] \ = xen.util.fileuri.schemes.decode(self[arg[0]]) log.debug("fileuri '%s' = '%s'" % (arg[0], self[arg[0]][:100]))