Mailinglist Archive: opensuse-buildservice (344 mails)

< Previous Next >
[opensuse-buildservice] [PATCH 3/3] fixed warning from pychecker
  • From: Danny Kukawka <dkukawka@xxxxxxx>
  • Date: Mon, 3 May 2010 16:10:15 +0200
  • Message-id: <201005031610.16277.dkukawka@xxxxxxx>
From 208250448c5d438f3906879993013ee126152ce2 Mon Sep 17 00:00:00 2001
From: Danny Kukawka <danny.kukawka@xxxxxx>
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@xxxxxx>
---
osc/core.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/osc/core.py b/osc/core.py
index 302db5b..edac283 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
--
1.5.6

--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups