# Path: coconut/exceptions.py
# class CoconutException(Exception):
#     """Base Coconut exception."""
# 
#     def __init__(self, message, item=None, extra=None):
#         """Creates the Coconut exception."""
#         self.args = (message, item, extra)
# 
#     def message(self, message, item, extra):
#         """Uses arguments to create the message."""
#         if item is not None:
#             message += ": " + ascii(item)
#         if extra is not None:
#             message += " (" + str(extra) + ")"
#         return message
# 
#     def syntax_err(self):
#         """Converts to a SyntaxError."""
#         return SyntaxError(str(self))
# 
#     def __str__(self):
#         """Get the exception message."""
#         return self.message(*self.args)
# 
#     def __reduce__(self):
#         """Get pickling information."""
#         return (self.__class__, self.args)
# 
#     def __repr__(self):
#         """Get a representation of the exception."""
#         return self.__class__.__name__ + "(" + ", ".join(
#             repr(arg) for arg in self.args if arg is not None
#         ) + ")"


from coconut.root import *  # NOQA
from coconut.exceptions import CoconutException
    from watchdog.events import FileSystemEventHandler
    from watchdog.observers import Observer  # NOQA
import sys
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# -----------------------------------------------------------------------------------------------------------------------
# INFO:
# -----------------------------------------------------------------------------------------------------------------------

"""
Authors: Evan Hubinger, Fred Buchanan
License: Apache 2.0
Description: Handles interfacing with watchdog to make --watch work.
"""

# -----------------------------------------------------------------------------------------------------------------------
# IMPORTS:
# -----------------------------------------------------------------------------------------------------------------------

from __future__ import print_function, absolute_import, unicode_literals, division




try:
    # import Observer to provide it for others to import
except ImportError:

# Path: coconut/exceptions.py
# class CoconutException(Exception):
#     """Base Coconut exception."""
# 
#     def __init__(self, message, item=None, extra=None):
#         """Creates the Coconut exception."""
#         self.args = (message, item, extra)
# 
#     def message(self, message, item, extra):
#         """Uses arguments to create the message."""
#         if item is not None:
#             message += ": " + ascii(item)
#         if extra is not None:
#             message += " (" + str(extra) + ")"
#         return message
# 
#     def syntax_err(self):
#         """Converts to a SyntaxError."""
#         return SyntaxError(str(self))
# 
#     def __str__(self):
#         """Get the exception message."""
#         return self.message(*self.args)
# 
#     def __reduce__(self):
#         """Get pickling information."""
#         return (self.__class__, self.args)
# 
#     def __repr__(self):
#         """Get a representation of the exception."""
#         return self.__class__.__name__ + "(" + ", ".join(
#             repr(arg) for arg in self.args if arg is not None
#         ) + ")"


# Path: coconut/command/watch.py
from coconut.root import *  # NOQA
from coconut.exceptions import CoconutException
    from watchdog.events import FileSystemEventHandler
    from watchdog.observers import Observer  # NOQA
import sys

#!/usr/bin/env python
# -*- coding: utf-8 -*-

# -----------------------------------------------------------------------------------------------------------------------
# INFO:
# -----------------------------------------------------------------------------------------------------------------------

"""
Authors: Evan Hubinger, Fred Buchanan
License: Apache 2.0
Description: Handles interfacing with watchdog to make --watch work.
"""

# -----------------------------------------------------------------------------------------------------------------------
# IMPORTS:
# -----------------------------------------------------------------------------------------------------------------------

from __future__ import print_function, absolute_import, unicode_literals, division




try:
    # import Observer to provide it for others to import
except ImportError:

    raise CoconutException(