home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2010 November / maximum-cd-2010-11.iso / DiscContents / calibre-0.7.13.msi / file_1070 (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-08-06  |  1.1 KB  |  24 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. __license__ = 'GPL 3'
  5. __copyright__ = '2009, John Schember <john@nachtimwald.com>'
  6. __docformat__ = 'restructuredtext en'
  7. import os
  8. from calibre.ebooks.rb.reader import Reader
  9. from calibre.customize.conversion import InputFormatPlugin
  10.  
  11. class RBInput(InputFormatPlugin):
  12.     name = 'RB Input'
  13.     author = 'John Schember'
  14.     description = 'Convert RB files to HTML'
  15.     file_types = set([
  16.         'rb'])
  17.     
  18.     def convert(self, stream, options, file_ext, log, accelerators):
  19.         reader = Reader(stream, log, options.input_encoding)
  20.         opf = reader.extract_content(os.getcwd())
  21.         return opf
  22.  
  23.  
  24.