diff options
author | Zac Medico <zmedico@gentoo.org> | 2006-03-17 01:53:47 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2006-03-17 01:53:47 +0000 |
commit | 3887953e350518ed3ffdae281e3c7d3949174166 (patch) | |
tree | c4532ca0a78c778672ea375e16cd780f39cf9267 | |
parent | ef96613d6924d810d555c62ddda4029a803e6555 (diff) | |
download | portage-3887953e350518ed3ffdae281e3c7d3949174166.tar.gz portage-3887953e350518ed3ffdae281e3c7d3949174166.tar.bz2 portage-3887953e350518ed3ffdae281e3c7d3949174166.zip |
Use the built-in bool() function to convert 1 or 0 to True or False as recommended by marienz.
svn path=/main/trunk/; revision=2909
-rw-r--r-- | pym/portage.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pym/portage.py b/pym/portage.py index 00f0822ae..1c2731086 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -1578,9 +1578,7 @@ class config: def __contains__(self, mykey): """Called to implement membership test operators (in and not in).""" - if self.has_key(mykey): - return True - return False + return bool(self.has_key(mykey)) def keys(self): mykeys=[] |