示例#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)
示例#2
0
文件: template.py 项目: CartoDB/pysal
    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)
示例#3
0
 def __init__(self, *args, **kwargs):
     FileIO.__init__(self, *args, **kwargs)
     self.fileObj = open(self.dataPath, self.mode)
示例#4
0
 def close(self):
     self.fileObj.close()
     #clean up the parent class too....
     FileIO.close(self)
示例#5
0
 def close(self):
     self.fileObj.close()
     FileIO.close(self)
示例#6
0
文件: template.py 项目: CartoDB/pysal
 def __init__(self, *args, **kwargs):
     FileIO.__init__(self, *args, **kwargs)
     self.fileObj = open(self.dataPath, self.mode)
示例#7
0
文件: template.py 项目: CartoDB/pysal
 def close(self):
     self.fileObj.close()
     #clean up the parent class too....
     FileIO.close(self)
示例#8
0
文件: template.py 项目: CartoDB/pysal
 def close(self):
     self.fileObj.close()
     FileIO.close(self)