[Python-checkins] r52984 - tracker/importer/sfxmlhandlers.py

erik.forsberg python-checkins at python.org
Sun Dec 10 11:28:33 CET 2006


Author: erik.forsberg
Date: Sun Dec 10 11:28:16 2006
New Revision: 52984
Modified:
 tracker/importer/sfxmlhandlers.py
Log:
* Handle "category not set"
Modified: tracker/importer/sfxmlhandlers.py
==============================================================================
--- tracker/importer/sfxmlhandlers.py	(original)
+++ tracker/importer/sfxmlhandlers.py	Sun Dec 10 11:28:16 2006
@@ -220,6 +220,9 @@
 class ComponentHandler(SFXMLHandler):
 def handle(self, fields, roundupdata):
 # Note: We might want to merge some components into one later.
+ if "None" == fields[self.source].text:
+ roundupdata[self.target] = []
+ return
 categorymerge = {"Demos and tools":"Demos and Tools",
 "Distutils and setup.py":"Distutils",
 "Python Interpreter Core":"Interpreter Core",


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /