Migrate all PAR2Set-derived classes to the package notation
[rarslave2.git] / PAR2Set / ExtractFirstNewRAR.py
index 6b90591..f646c89 100644 (file)
@@ -1,8 +1,8 @@
 #!/usr/bin/env python
 # vim: set ts=4 sts=4 sw=4 textwidth=92:
 
-import PAR2Set_NEWRAR
-import PAR2Set_EXTRACTFIRST
+import PAR2Set.ExtractFirstBase
+import PAR2Set.NewRAR
 from RarslaveCommon import *
 
 #
@@ -26,13 +26,13 @@ from RarslaveCommon import *
 # with the PAR2 file itself.
 #
 
-def detect_EF_NEWRAR (name_files, prot_files):
+def detector (name_files, prot_files):
        return has_a_match ('^.*\.part0*1\.rar$', name_files) \
                        and not has_a_match ('^.*\.part0*1\.rar$', prot_files)
 
 
-class PAR2Set_EF_NEWRAR (PAR2Set_EXTRACTFIRST.PAR2Set_EXTRACTFIRST,
-                                                       PAR2Set_NEWRAR.PAR2Set_NEWRAR):
+class ExtractFirstNewRAR (PAR2Set.ExtractFirstBase.ExtractFirstBase, \
+               PAR2Set.NewRAR.NewRAR):
 
        def __repr__ (self):
                return 'EXTRACTFIRST NEWRAR'