From: Zac Medico Date: Wed, 9 Apr 2008 18:45:33 +0000 (-0000) Subject: Fix a potential TypeError. X-Git-Tag: v2.1.5~219 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=efb321e18e09e150acc28087467f79d8b87b4cfb;p=portage.git Fix a potential TypeError. svn path=/main/branches/2.1.2/; revision=9781 --- diff --git a/pym/portage.py b/pym/portage.py index f093f5493..c9fdbe6fa 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -529,7 +529,7 @@ def elog_process(cpv, mysettings): except OSError: pass # shortcut for packages without any messages - if len(mylogfiles) == 0: + if not mylogfiles: return # exploit listdir() file order so we process log entries in chronological order mylogfiles.reverse()