From: Nelson Elhage Date: Mon, 28 Dec 2009 22:37:17 +0000 (-0500) Subject: rename X-Git-Url: https://projects.mako.cc/source/iron-blogger/commitdiff_plain/d97eb533020e1dc9fde31d86b6d8bf5a4fc30b9a rename --- 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)