My dotfiles
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 

17 rader
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