mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-25 11:42:12 +01:00
fixed warning from pychecker
From 208250448c5d438f3906879993013ee126152ce2 Mon Sep 17 00:00:00 2001 From: Danny Kukawka <danny.kukawka@web.de> 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 <danny.kukawka@web.de>
This commit is contained in:
parent
ad238df8bd
commit
6467c23bdc
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user