Revision 3ecf6786 lib/ssconf.py

b/lib/ssconf.py
77 77

  
78 78
    """
79 79
    if key not in self._VALID_KEYS:
80
      raise errors.ProgrammerError, ("Invalid key requested from SSConf: '%s'"
81
                                     % str(key))
80
      raise errors.ProgrammerError("Invalid key requested from SSConf: '%s'"
81
                                   % str(key))
82 82

  
83 83
    filename = self._cfg_dir + '/' + self._SS_FILEPREFIX + key
84 84
    return filename
......
101 101
      finally:
102 102
        fh.close()
103 103
    except EnvironmentError, err:
104
      raise errors.ConfigurationError, ("Can't read from the ssconf file:"
105
                                        " '%s'" % str(err))
104
      raise errors.ConfigurationError("Can't read from the ssconf file:"
105
                                      " '%s'" % str(err))
106 106
    self._cache[key] = data
107 107
    return data
108 108

  

Also available in: Unified diff