示例#1
0
 def __init__(self, fileName, *args):
     LineCounter.__init__(self, openInputFile(fileName, *args))
     try:
         self.fileName = fileName.name
     except AttributeError:
         self.fileName = fileName
示例#2
0
 def __init__(self, fileName, *args):
     LineCounter.__init__(self, openInputFile(fileName, *args))
     self.fileName=fileName
示例#3
0
 def __init__(self, fileName, *args):
     LineCounter.__init__(self, openInputFile(fileName, *args))
     try:
         self.fileName = fileName.name
     except AttributeError:
         self.fileName = fileName