author David Douard <david.douard@logilab.fr>
Wed, 14 May 2014 23:10:57 +0200
changeset 1521 2f7557eabc54
parent 1515 2a12802efe66
permissions -rw-r--r--
[pkg] prepare 3.0.0 - ensure MANIFEST.in is correct - add entry in the debian/changelog

"""preprocessors packages"""

__docformat__ = "restructuredtext en"

    import apycotlib
except ImportError: # allow to run from sources
    from cubes.apycot import _apycotlib as apycotlib
    import sys
    sys.modules['apycotlib'] = apycotlib

from apycotlib import ApycotObject

class BasePreProcessor(ApycotObject):
    """an abstract class providing some common utilities for preprocessors
    __type__ = 'preprocessor'

    def run(self, test, path):
        """Run preprocessor against source in <path> in <test> context"""
        raise NotImplementedError()