Changeset 548 for confluence/genderiser/genderiser-python/genderiser.py
- Timestamp:
- 05/01/09 18:41:31 (17 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
confluence/genderiser/genderiser-python/genderiser.py
r541 r548 64 64 65 65 def splitlist(string): 66 return [x.strip() for x in string.split(",")] 66 string = string.replace("\,", "|") 67 chunks = [x.strip() for x in string.split(",")] 68 return [x.replace("|",",") for x in chunks] 67 69 68 70 GENDERS = { … … 110 112 111 113 # GET CONFIG 112 # TODO: how to escape commas? CSV-esque format?113 114 114 115 conf = ConfigParser.ConfigParser()
