Dup -> Dupe

This commit is contained in:
Ivan Kozik 2015-07-18 11:00:33 +00:00
parent 2222aafa74
commit d3715fe888

View File

@ -18,7 +18,7 @@ class NoFsyncSQLTable(SQLiteURLTable):
connection.execute('PRAGMA synchronous=OFF') connection.execute('PRAGMA synchronous=OFF')
class DupSpottingProcessingRule(wpull.processor.rule.ProcessingRule): class DupeSpottingProcessingRule(wpull.processor.rule.ProcessingRule):
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
self.dupes_db = kwargs.pop('dupes_db', None) self.dupes_db = kwargs.pop('dupes_db', None)
super().__init__(*args, **kwargs) super().__init__(*args, **kwargs)
@ -62,5 +62,5 @@ else:
wpull_plugin.factory.class_map['URLTableImplementation'] = NoFsyncSQLTable wpull_plugin.factory.class_map['URLTableImplementation'] = NoFsyncSQLTable
wpull_plugin.factory.class_map['ProcessingRule'] = functools.partial( wpull_plugin.factory.class_map['ProcessingRule'] = functools.partial(
DupSpottingProcessingRule, dupes_db=dupes_db DupeSpottingProcessingRule, dupes_db=dupes_db
) )