My dotfiles
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

17 righe
503 B

  1. # Copyright (c) Microsoft Corporation. All rights reserved.
  2. # Licensed under the MIT License.
  3. class UnsupportedToolError(ValueError):
  4. def __init__(self, tool):
  5. msg = 'unsupported tool {!r}'.format(tool)
  6. super(UnsupportedToolError, self).__init__(msg)
  7. self.tool = tool
  8. class UnsupportedCommandError(ValueError):
  9. def __init__(self, cmd):
  10. msg = 'unsupported cmd {!r}'.format(cmd)
  11. super(UnsupportedCommandError, self).__init__(msg)
  12. self.cmd = cmd