summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2015-08-29 12:30:52 +0300
committerLars Wirzenius <liw@liw.fi>2015-08-29 12:30:52 +0300
commit4b7b6d27a3da6750bafdaee918982ffa0f59d09a (patch)
tree6d3f4827d06aafdf32870c472f9cdccc37621221
parent6a1e6f4949171272a74bbc6f470850be6f3ea89e (diff)
downloadobnam-4b7b6d27a3da6750bafdaee918982ffa0f59d09a.tar.gz
Make use of variable
-rw-r--r--obnamlib/plugins/exclude_caches_plugin.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/obnamlib/plugins/exclude_caches_plugin.py b/obnamlib/plugins/exclude_caches_plugin.py
index e5990a74..8347527c 100644
--- a/obnamlib/plugins/exclude_caches_plugin.py
+++ b/obnamlib/plugins/exclude_caches_plugin.py
@@ -46,12 +46,12 @@ class ExcludeCachesPlugin(obnamlib.ObnamPlugin):
if stat.S_ISDIR(stat_result.st_mode):
tag_filename = 'CACHEDIR.TAG'
tag_contents = 'Signature: 8a477f597d28d172789f06886806bc55'
- tag_path = os.path.join(pathname, 'CACHEDIR.TAG')
+ tag_path = os.path.join(pathname, tag_filename)
if fs.exists(tag_path):
# Can't use with, because Paramiko's SFTPFile does not work.
f = fs.open(tag_path, 'rb')
data = f.read(len(tag_contents))
f.close()
if data == tag_contents:
- logging.debug('Excluding (cache dir): %s' % pathname)
+ logging.debug('Excluding (cache dir): %s', pathname)
exclude[0] = True