mirror of
https://github.com/theupdateframework/python-tuf
synced 2026-05-24 10:08:28 +00:00
Add blank lines to improve readability
This commit is contained in:
parent
a1b61e9d6f
commit
31e4f1ccf0
1 changed files with 5 additions and 1 deletions
|
|
@ -85,7 +85,7 @@ def tearDown(self):
|
|||
try:
|
||||
# OSError will occur if the directory was already removed.
|
||||
cleanup_function()
|
||||
|
||||
|
||||
except OSError:
|
||||
pass
|
||||
|
||||
|
|
@ -93,11 +93,15 @@ def tearDown(self):
|
|||
|
||||
def make_temp_directory(self, directory=None):
|
||||
"""Creates and returns an absolute path of a directory."""
|
||||
|
||||
prefix = self.__class__.__name__+'_'
|
||||
temp_directory = tempfile.mkdtemp(prefix=prefix, dir=directory)
|
||||
|
||||
def _destroy_temp_directory():
|
||||
shutil.rmtree(temp_directory)
|
||||
|
||||
self._cleanup.append(_destroy_temp_directory)
|
||||
|
||||
return temp_directory
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue