def __exit__(self, exc, value, tb):

        self.close()

        if 'c' not in self.mode:
            return SpooledTemporaryFile.__exit__(self, exc, value, tb)

        return False
    def __exit__(self, exc, value, tb):
        """Send the change to the DFS, and close the file."""

        self.close()

        if 'c' not in self.mode:
            return SpooledTemporaryFile.__exit__(self, exc, value, tb)

        return False
示例#3
0
文件: client.py 项目: Alexis-D/DFS
    def __exit__(self, exc, value, tb):
        """Send the change to the DFS, and close the file."""

        self.close()

        if 'c' not in self.mode:
            return SpooledTemporaryFile.__exit__(self, exc, value, tb)

        return False
示例#4
0
	def __exit__(self, exc, value, tb):
		## Intimate changes to DFS, and close file

		self.close()

		if 'c' not in self.mode:
			return SpooledTemporaryFile.__exit__(self, exc, value, tb)

		return False