diff options
author | Jan Pokorný <jpokorny@redhat.com> | 2016-01-21 13:19:47 +0100 |
---|---|---|
committer | Jan Pokorný <jpokorny@redhat.com> | 2016-02-01 23:53:24 +0100 |
commit | 183bc49963df6b228f022a46084698214b38771a (patch) | |
tree | 6280df664141f157d849610aafe3056af9fdd9b6 | |
parent | 0d569b452ee6d324181f27940183a2e5598dab30 (diff) | |
download | clufter-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.py | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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): |