summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2016-01-21 13:19:47 +0100
committerJan Pokorný <jpokorny@redhat.com>2016-02-01 23:53:24 +0100
commit183bc49963df6b228f022a46084698214b38771a (patch)
tree6280df664141f157d849610aafe3056af9fdd9b6
parent0d569b452ee6d324181f27940183a2e5598dab30 (diff)
downloadclufter-183bc49963df6b228f022a46084698214b38771a.tar.gz
clufter-183bc49963df6b228f022a46084698214b38771a.tar.xz
clufter-183bc49963df6b228f022a46084698214b38771a.zip
utils: fix unintended implicit "always false" return value
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
-rw-r--r--utils.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/utils.py b/utils.py
index ae8170e..7bc36f9 100644
--- a/utils.py
+++ b/utils.py
@@ -1,5 +1,5 @@
# -*- coding: UTF-8 -*-
-# Copyright 2015 Red Hat, Inc.
+# Copyright 2016 Red Hat, Inc.
# Part of clufter project
# Licensed under GPLv2+ (a copy included | http://gnu.org/licenses/gpl-2.0.txt)
"""Various little+independent helpers"""
@@ -114,7 +114,9 @@ def isinstanceupto(subj, obj, *exc):
def areinstances(obj1, obj2):
- isinstance(obj1, obj2.__class__) or isinstance(obj2, obj1.__class__)
+ return isinstance(obj1, obj2.__class__) or isinstance(obj2, obj1.__class__)
+
+
def popattr(obj, what, *args):