Пример #1
0
    def __exit__(self, exc, value, tb):

        self.close()

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

        return False
Пример #2
0
    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
    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