Migrate all PAR2Set-derived classes to the package notation
[rarslave2.git] / PAR2Set / Join.py
index bf0dc56..c2b055f 100644 (file)
@@ -2,7 +2,7 @@
 # vim: set ts=4 sts=4 sw=4 textwidth=92:
 
 import logging
-import PAR2Set
+import PAR2Set.Base
 from RarslaveCommon import *
 
 #
@@ -20,12 +20,12 @@ from RarslaveCommon import *
 # work where the PAR2 files are protecting the .001, etc files directly.
 #
 
-def detect_JOIN (name_files, prot_files):
+def detector (name_files, prot_files):
        return has_a_match ('^.*\.\d\d\d$', name_files) \
                        and not has_a_match ('^.*\.\d\d\d$', prot_files)
 
 
-class PAR2Set_JOIN (PAR2Set.PAR2Set):
+class Join (PAR2Set.Base.Base):
 
        def __repr__ (self):
                return 'JOIN'