def __init__(self, job, filename, main_depth=None, main_tag=None, tags=None, encoding=None): FileInput.__init__(self, job, filename, encoding) if not main_depth and not main_tag and not tags: main_depth, main_tag, tags = XMLDetector.detect(self.get_fh()) self.main_depth = main_depth self.main_tag = main_tag self.tags = tags
def __init__(self, job, filename, encoding=None, dialect=None, has_headers=None): FileInput.__init__(self, job, filename, encoding) self.reader = None self.encoding = None self.headers = None self.job = job self.set_filename(filename) self.set_encoding(encoding) self.set_dialect(dialect) self.set_has_headers(has_headers)