From 63a7ffa6e284b242c8d41e662c6d58036025f8cc Mon Sep 17 00:00:00 2001 From: Mary Gardiner Date: Thu, 17 Aug 2006 09:11:37 +1000 Subject: [PATCH] First pass at fixing imports --- planet/config.py | 6 +++--- planet/spider.py | 4 +++- planet/splice.py | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/planet/config.py b/planet/config.py index 7a5fc6c..855d038 100644 --- a/planet/config.py +++ b/planet/config.py @@ -7,7 +7,7 @@ the structure of the ini file, to knowledge of data types, even down to what are the defaults. Usage: - from planet import config + import config config.load('config.ini') # administrative / structural information @@ -35,7 +35,7 @@ planet_predefined_options = [] def __init__(): """define the struture of an ini file""" - from planet import config + import config def get(section, option, default): if section and parser.has_option(section, option): @@ -95,7 +95,7 @@ def planet_options(): def feed_options(section): """ dictionary of feed specific options""" - from planet import config + import config options = dict([(key,value) for key,value in planet_options().items() if key not in planet_predefined_options]) if parser.has_section(section): diff --git a/planet/spider.py b/planet/spider.py index 18c40c1..0ad530d 100644 --- a/planet/spider.py +++ b/planet/spider.py @@ -3,8 +3,10 @@ Fetch either a single feed, or a set of feeds, normalize to Atom and XHTML, and write each as a set of entries in a cache directory. """ -from planet import config, feedparser, reconstitute +# Standard library modules import time, calendar, re, os +# Planet modules +import config, feedparser, reconstitute try: from xml.dom.ext import PrettyPrint diff --git a/planet/splice.py b/planet/splice.py index b2a2a50..fe32b4a 100644 --- a/planet/splice.py +++ b/planet/splice.py @@ -1,7 +1,7 @@ """ Splice together a planet from a cache of feed entries """ import glob, os -from planet import config from xml.dom import minidom +import config from reconstitute import createTextElement def splice(configFile):