Removed some unused code + different line wrap style
This commit is contained in:
parent
0778b3a6ec
commit
38978537bc
@ -66,8 +66,8 @@ class Packer:
|
||||
log.warning('Running in no-op mode, only showing what will be done.')
|
||||
|
||||
# Filled by strategise()
|
||||
self._actions = collections.defaultdict(
|
||||
AssetAction) # type: typing.DefaultDict[pathlib.Path, AssetAction]
|
||||
self._actions = collections.defaultdict(AssetAction) \
|
||||
# type: typing.DefaultDict[pathlib.Path, AssetAction]
|
||||
|
||||
# Number of files we would copy, if not for --noop
|
||||
self._file_count = 0
|
||||
@ -75,12 +75,6 @@ class Packer:
|
||||
self._tmpdir = tempfile.TemporaryDirectory(suffix='-batpack')
|
||||
self._rewrite_in = pathlib.Path(self._tmpdir.name)
|
||||
|
||||
def __enter__(self):
|
||||
return self
|
||||
|
||||
def __exit__(self, exc_type, exc_val, exc_tb):
|
||||
self.close()
|
||||
|
||||
def close(self):
|
||||
"""Clean up any temporary files."""
|
||||
self._tmpdir.cleanup()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user