diff options
author | Lars Wirzenius <liw@liw.fi> | 2015-08-29 12:30:52 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2015-08-29 12:30:52 +0300 |
commit | 4b7b6d27a3da6750bafdaee918982ffa0f59d09a (patch) | |
tree | 6d3f4827d06aafdf32870c472f9cdccc37621221 | |
parent | 6a1e6f4949171272a74bbc6f470850be6f3ea89e (diff) | |
download | obnam-4b7b6d27a3da6750bafdaee918982ffa0f59d09a.tar.gz |
Make use of variable
-rw-r--r-- | obnamlib/plugins/exclude_caches_plugin.py | 4 |
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 |