mirror of https://github.com/CIRCL/PyCIRCLean
Move KittenGroomerError to end of file
parent
7b8b175a93
commit
f424be79cd
|
@ -16,19 +16,6 @@ import argparse
|
||||||
import magic
|
import magic
|
||||||
|
|
||||||
|
|
||||||
class KittenGroomerError(Exception):
|
|
||||||
"""Base KittenGroomer exception handler."""
|
|
||||||
|
|
||||||
def __init__(self, message):
|
|
||||||
super(KittenGroomerError, self).__init__(message)
|
|
||||||
self.message = message
|
|
||||||
|
|
||||||
|
|
||||||
class ImplementationRequired(KittenGroomerError):
|
|
||||||
"""Implementation required error."""
|
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
class FileBase(object):
|
class FileBase(object):
|
||||||
"""
|
"""
|
||||||
Base object for individual files in the source directory.
|
Base object for individual files in the source directory.
|
||||||
|
@ -336,6 +323,19 @@ class KittenGroomerBase(object):
|
||||||
raise ImplementationRequired('Please implement processdir.')
|
raise ImplementationRequired('Please implement processdir.')
|
||||||
|
|
||||||
|
|
||||||
|
class KittenGroomerError(Exception):
|
||||||
|
"""Base KittenGroomer exception handler."""
|
||||||
|
|
||||||
|
def __init__(self, message):
|
||||||
|
super(KittenGroomerError, self).__init__(message)
|
||||||
|
self.message = message
|
||||||
|
|
||||||
|
|
||||||
|
class ImplementationRequired(KittenGroomerError):
|
||||||
|
"""Implementation required error."""
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
def main(kg_implementation, description='Call a KittenGroomer implementation to process files present in the source directory and copy them to the destination directory.'):
|
def main(kg_implementation, description='Call a KittenGroomer implementation to process files present in the source directory and copy them to the destination directory.'):
|
||||||
parser = argparse.ArgumentParser(prog='KittenGroomer', description=description)
|
parser = argparse.ArgumentParser(prog='KittenGroomer', description=description)
|
||||||
parser.add_argument('-s', '--source', type=str, help='Source directory')
|
parser.add_argument('-s', '--source', type=str, help='Source directory')
|
||||||
|
|
Loading…
Reference in New Issue