Migrate all PAR2Set-derived classes to the package notation
[rarslave2.git] / PAR2Set / OldRAR.py
index 5a099fe..9c89069 100644 (file)
@@ -1,7 +1,7 @@
 #!/usr/bin/env python
 # vim: set ts=4 sts=4 sw=4 textwidth=92:
 
-import PAR2Set
+import PAR2Set.Base
 from RarslaveCommon import *
 
 #
@@ -25,11 +25,11 @@ from RarslaveCommon import *
 # with the PAR2 file itself.
 #
 
-def detect_OLDRAR (name_files, prot_files):
+def detector (name_files, prot_files):
        return has_a_match ('^.*\.r00$', prot_files)
 
 
-class PAR2Set_OLDRAR (PAR2Set.PAR2Set):
+class OldRAR (PAR2Set.Base.Base):
 
        def __repr__ (self):
                return 'OLDRAR'