示例#1
0
 def __init__(self, files):
     s = Stream()
     self.log_stream = s.stream
     log = Log()
     log.outputs = [s]
     ContainerBase.__init__(self, log=log)
     self.mime_map = {k:self.guess_type(k) for k in files}
     self.files = files
示例#2
0
文件: cascade.py 项目: AEliu/calibre
 def __init__(self, files):
     s = Stream()
     self.log_stream = s.stream
     log = Log()
     log.outputs = [s]
     ContainerBase.__init__(self, log=log)
     self.mime_map = {k:self.guess_type(k) for k in files}
     self.files = files