From 38978537bcb6fc0652c5f83642343419c67ddf23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Fri, 9 Mar 2018 13:04:26 +0100 Subject: [PATCH] Removed some unused code + different line wrap style --- blender_asset_tracer/pack/__init__.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/blender_asset_tracer/pack/__init__.py b/blender_asset_tracer/pack/__init__.py index d187ec9..1f72e5a 100644 --- a/blender_asset_tracer/pack/__init__.py +++ b/blender_asset_tracer/pack/__init__.py @@ -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()