From 5b36c34c70263b4e6c718e03d36276cc63051fe4 Mon Sep 17 00:00:00 2001 From: Brian Harring Date: Sat, 4 Feb 2006 12:32:29 +0000 Subject: aparently someone never heard of rstrip... svn path=/main/trunk/; revision=2660 --- pym/portage.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'pym/portage.py') diff --git a/pym/portage.py b/pym/portage.py index 9ab0a0891..4bd7a65ac 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -1718,12 +1718,7 @@ def fetch(myuris, mysettings, listonly=0, fetchonly=0, locks_in_subdir=".locks", pass else: if try_mirrors: - for x in mysettings["GENTOO_MIRRORS"].split(): - if x: - if x[-1] == '/': - mymirrors += [x[:-1]] - else: - mymirrors += [x] + mymirrors += [x.rstrip("/") for x in mysettings["GENTOO_MIRRORS"].split() if x] mydigests = {} digestfn = mysettings["FILESDIR"]+"/digest-"+mysettings["PF"] -- cgit v1.2.3-1-g7c22