def __init__(self, fileName, *args): LineCounter.__init__(self, openInputFile(fileName, *args)) try: self.fileName = fileName.name except AttributeError: self.fileName = fileName
def __init__(self, fileName, *args): LineCounter.__init__(self, openInputFile(fileName, *args)) self.fileName=fileName