small changes for cleanup

This commit is contained in:
James Turk 2009-02-27 19:49:50 +00:00
parent e8da52e486
commit a0b206e711
2 changed files with 14 additions and 14 deletions

View File

@ -25,19 +25,19 @@ def run_recipe(source, *filter_args):
pass # don't care if there isn't a done method pass # don't care if there isn't a done method
##### allow selection between threading/processing ##### # experiment with threading - do not use
#from threading import Thread as TaskType from threading import Thread as TaskType
#from Queue import Queue from Queue import Queue
#from threading import activeCount as active_tasks from threading import activeCount as active_tasks
from processing import Process as TaskType # uncomment to use processing instead of threading
from processing import Queue #from processing import Process as TaskType
def active_tasks(): #from processing import Queue
from processing import activeChildren #def active_tasks():
return len(activeChildren()) # from processing import activeChildren
# return len(activeChildren())
########################################################
class FilterThread(TaskType): class FilterThread(TaskType):
__create_count = 0 __create_count = 0

View File

@ -382,9 +382,9 @@ class NameCleaner(Filter):
Takes a list of target keys. Takes a list of target keys.
PhoneNumberCleaner( ('phone','fax'), NameCleaner( ('name', ), nomatch_name='raw_name')
number_format='%s%s%s-%s%s%s-%s%s%s%s') would attempt to split 'name' into firstname, middlename, lastname,
would format the phone & fax columns to 555-123-4567 format. and suffix columns, and if it did not fit would place it in raw_name
""" """
# first middle? last suffix? # first middle? last suffix?