From efb321e18e09e150acc28087467f79d8b87b4cfb Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 9 Apr 2008 18:45:33 +0000 Subject: [PATCH] Fix a potential TypeError. svn path=/main/branches/2.1.2/; revision=9781 --- pym/portage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.26.2