Ejemplo n.º 1
0
    def __init__(self, *args, **kwargs):
        # initialize the parent class...
        FileIO.__init__(self, *args, **kwargs)
        # this gives you:
        # self.dataPath == the connection string or path to file
        # self.mode == the mode the file should be opened in

        self.fileObj = open(self.dataPath, self.mode)
Ejemplo n.º 2
0
    def __init__(self, *args, **kwargs):
        # initialize the parent class...
        FileIO.__init__(self, *args, **kwargs)
        # this gives you:
        # self.dataPath == the connection string or path to file
        # self.mode == the mode the file should be opened in

        self.fileObj = open(self.dataPath, self.mode)
Ejemplo n.º 3
0
 def __init__(self, *args, **kwargs):
     FileIO.__init__(self, *args, **kwargs)
     self.fileObj = open(self.dataPath, self.mode)
Ejemplo n.º 4
0
 def close(self):
     self.fileObj.close()
     #clean up the parent class too....
     FileIO.close(self)
Ejemplo n.º 5
0
 def close(self):
     self.fileObj.close()
     FileIO.close(self)
Ejemplo n.º 6
0
 def __init__(self, *args, **kwargs):
     FileIO.__init__(self, *args, **kwargs)
     self.fileObj = open(self.dataPath, self.mode)
Ejemplo n.º 7
0
 def close(self):
     self.fileObj.close()
     #clean up the parent class too....
     FileIO.close(self)
Ejemplo n.º 8
0
 def close(self):
     self.fileObj.close()
     FileIO.close(self)