<s> import six <EOL> import logging <EOL> from abc import ABCMeta <EOL> from abc import abstractmethod <EOL> from . CPLogging import CPLogging as KenLog <EOL> from . PluginBase import PluginBase <EOL> from . Version import Version <EOL> LOG = logging . getLogger ( __name__ ) <EOL> @ six . add_metaclass ( ABCMeta ) <EOL> class MigratorPlugin ( PluginBase ) : <EOL> def __init__ ( self , version , instructions , models , controllers , slug ) : <EOL> super ( MigratorPlugin , self ) . __init__ ( version , instructions , slug ) <EOL> LOG . info ( '<STR_LIT>' % KenLog . fcn ( ) ) <EOL> self . _models = models <EOL> self . _controllers = controllers <EOL> self . _errors = [ ] <EOL> def version ( self ) : <EOL> return Version . get ( self . _instructions [ '<STR_LIT>' ] ) <EOL> @ abstractmethod <EOL> def migrate ( self , model ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> @ abstractmethod <EOL> def applies_to ( self ) : <EOL> """<STR_LIT>""" <EOL> return [ ] </s>
