From 6467c23bdcac9de12c531af04a5f31ca2d39c33e Mon Sep 17 00:00:00 2001 From: Danny Kukawka Date: Mon, 3 May 2010 16:10:15 +0200 Subject: [PATCH] fixed warning from pychecker From 208250448c5d438f3906879993013ee126152ce2 Mon Sep 17 00:00:00 2001 From: Danny Kukawka Date: Fri, 30 Apr 2010 17:45:41 +0200 Subject: [PATCH] fixed warning from pychecker Fixed warning from pychecker: 'Comparisons with True are not necessary and may not work as expected' Signed-off-by: Danny Kukawka --- osc/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osc/core.py b/osc/core.py index ec13f729..bb5b82ff 100644 --- a/osc/core.py +++ b/osc/core.py @@ -2243,7 +2243,7 @@ class metafile: def sync(self): hash = dgst(self.filename) - if self.change_is_required == True and hash == self.hash_orig: + if self.change_is_required and hash == self.hash_orig: print 'File unchanged. Not saving.' os.unlink(self.filename) return