diff options
author | Lars Wirzenius <liw@liw.fi> | 2015-08-29 11:37:25 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2015-08-29 11:37:25 +0300 |
commit | bc14dd13c8612e20a1d5ff91af433a96e4edf904 (patch) | |
tree | 4699bd5b56f4e8e76bf60b75cfa653b821ed85b1 /obnamlib/bag_store.py | |
parent | 9b287d2a44a36c32957bb862b9ad11e93384251d (diff) | |
download | obnam-bc14dd13c8612e20a1d5ff91af433a96e4edf904.tar.gz |
Drop unused variables
Diffstat (limited to 'obnamlib/bag_store.py')
-rw-r--r-- | obnamlib/bag_store.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/obnamlib/bag_store.py b/obnamlib/bag_store.py index abe33baf..5cbc3196 100644 --- a/obnamlib/bag_store.py +++ b/obnamlib/bag_store.py @@ -16,7 +16,6 @@ # =*= License: GPL-3+ =*= -import errno import os import random @@ -56,12 +55,12 @@ class BagStore(object): filename = self._make_bag_filename(bag_id) try: st = self._fs.lstat(filename) - except (IOError, OSError) as e: # pragma: no cover + except (IOError, OSError): # pragma: no cover return False return st.st_size > 0 def get_bag_ids(self): - for pathname, st in self._fs.scan_tree(self._dirname): + for pathname, _ in self._fs.scan_tree(self._dirname): if self._is_bag_filename(pathname): yield self._get_bag_id_from_filename(pathname) |