浏览代码

Add Item representation

master
JustAnotherArchivist 3 年前
父节点
当前提交
4484d6c588
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. +3
    -0
      qwarc/__init__.py

+ 3
- 0
qwarc/__init__.py 查看文件

@@ -204,6 +204,9 @@ class Item:
yield subclass yield subclass
yield from subclass.get_subclasses() yield from subclass.get_subclasses()


def __repr__(self):
return f'<{type(self).__module__}.{type(self).__name__} object {id(self)}, itemType = {self.itemType!r}, itemValue = {self.itemValue!r}>'



class QWARC: class QWARC:
def __init__(self, itemClasses, warcBasePath, dbPath, command, specFile, specDependencies, logFilename, concurrency = 1, memoryLimit = 0, minFreeDisk = 0, warcSizeLimit = 0, warcDedupe = False): def __init__(self, itemClasses, warcBasePath, dbPath, command, specFile, specDependencies, logFilename, concurrency = 1, memoryLimit = 0, minFreeDisk = 0, warcSizeLimit = 0, warcDedupe = False):


正在加载...
取消
保存