From: Zac Medico Date: Sat, 5 Sep 2009 07:39:51 +0000 (-0000) Subject: Remove unnecessary redundant dict lookup at the beginning of catpkgsplit(). X-Git-Tag: v2.2_rc41~76 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8f272835815d3ceee91fd1b6fefdc74b2d2d3d70;p=portage.git Remove unnecessary redundant dict lookup at the beginning of catpkgsplit(). Thanks to Marat Radchenko for this patch. svn path=/main/trunk/; revision=14186 --- diff --git a/pym/portage/versions.py b/pym/portage/versions.py index 82cf998dc..8a3fe0d07 100644 --- a/pym/portage/versions.py +++ b/pym/portage/versions.py @@ -268,8 +268,6 @@ def catpkgsplit(mydata,silent=1): """ try: - if not catcache[mydata]: - return None return catcache[mydata] except KeyError: pass