From d97eb533020e1dc9fde31d86b6d8bf5a4fc30b9a Mon Sep 17 00:00:00 2001 From: Nelson Elhage Date: Mon, 28 Dec 2009 17:37:17 -0500 Subject: [PATCH] rename --- atom.py => import-feeds.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename atom.py => import-feeds.py (93%) diff --git a/atom.py b/import-feeds.py similarity index 93% rename from atom.py rename to import-feeds.py index cbd0d3c..fa370c4 100644 --- a/atom.py +++ b/import-feeds.py @@ -25,13 +25,13 @@ for (name, u) in users.items(): (title, url) = e[0:2] print " - %s:" % title.strip() e[0] = e[0].strip() - if len(e) < 3: - e.append(None) + if len(e) == 3: + continue link = fetch_links(url) if not link.startswith('http:'): link = urlparse.urljoin(url, link) print " %s" % (link,) - e[2] = link + e.append(link) with open('bloggers.yml', 'w') as f: yaml.safe_dump(users, f) -- 2.39.5