-#!/usr/bin/python
+#
#
# Copyright (C) 2006, 2007 Google Inc.
"""
if key not in self._VALID_KEYS:
- raise errors.ProgrammerError, ("Invalid key requested from SSConf: '%s'"
- % str(key))
+ raise errors.ProgrammerError("Invalid key requested from SSConf: '%s'"
+ % str(key))
filename = self._cfg_dir + '/' + self._SS_FILEPREFIX + key
return filename
finally:
fh.close()
except EnvironmentError, err:
- raise errors.ConfigurationError, ("Can't read from the ssconf file:"
- " '%s'" % str(err))
+ raise errors.ConfigurationError("Can't read from the ssconf file:"
+ " '%s'" % str(err))
self._cache[key] = data
return data