Remove unnecessary redundant dict lookup at the beginning of catpkgsplit().
authorZac Medico <zmedico@gentoo.org>
Sat, 5 Sep 2009 07:39:51 +0000 (07:39 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 5 Sep 2009 07:39:51 +0000 (07:39 -0000)
Thanks to Marat Radchenko <slonopotamusorama@gmail.com> for this patch.

svn path=/main/trunk/; revision=14186

pym/portage/versions.py

index 82cf998dc1432ce84a0f269173b16a5a9acd62c3..8a3fe0d073734137cd30b5dd7d7a2f13e222d4de 100644 (file)
@@ -268,8 +268,6 @@ def catpkgsplit(mydata,silent=1):
        """
 
        try:
-               if not catcache[mydata]:
-                       return None
                return catcache[mydata]
        except KeyError:
                pass