summaryrefslogtreecommitdiff
path: root/obnamlib/plugins/show_plugin.py
diff options
context:
space:
mode:
authorThomas Waldmann <tw@waldmann-edv.de>2015-02-27 16:48:13 +0100
committerLars Wirzenius <liw@liw.fi>2015-03-22 14:07:22 +0200
commitfbe9fed84bd233b703f910eabbcd18b873e9145f (patch)
tree3c70155f40daa18c4ec06fa106094f8bd297661a /obnamlib/plugins/show_plugin.py
parente753aa4298c657ec507a1afb59a6e0f463f190e9 (diff)
downloadobnam-fbe9fed84bd233b703f910eabbcd18b873e9145f.tar.gz
remove uneeded outer parens around boolean expressions
Diffstat (limited to 'obnamlib/plugins/show_plugin.py')
-rw-r--r--obnamlib/plugins/show_plugin.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/obnamlib/plugins/show_plugin.py b/obnamlib/plugins/show_plugin.py
index 00d478d4..693a6d33 100644
--- a/obnamlib/plugins/show_plugin.py
+++ b/obnamlib/plugins/show_plugin.py
@@ -159,12 +159,12 @@ class ShowPlugin(obnamlib.ObnamPlugin):
# the repository is empty / the client does not exist
self.app.output.write('CRITICAL: no backup found.\n')
sys.exit(2)
- elif (now - most_recent > critical_age):
+ elif now - most_recent > critical_age:
self.app.output.write(
'CRITICAL: backup is old. last backup was %s.\n' %
(self.format_time(most_recent)))
sys.exit(2)
- elif (now - most_recent > warn_age):
+ elif now - most_recent > warn_age:
self.app.output.write(
'WARNING: backup is old. last backup was %s.\n' %
self.format_time(most_recent))
@@ -291,7 +291,7 @@ class ShowPlugin(obnamlib.ObnamPlugin):
enc_filename = enc_filename.replace(" ", "%20")
enc_filename = enc_filename.replace("\t", "%09")
- if (filename == "/"): return
+ if filename == "/": return
self.app.output.write("%s%s\t%d\t%#x\n" %
(mode_str, enc_filename, size, mtime_sec))