Changeset 6411
- Timestamp:
- Feb 25, 2009, 11:03:22 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/numpy/anuga/utilities/system_tools.py
r6410 r6411 247 247 248 248 249 ###250 ## @brief Split a string into 'clean' fields.251 ## @param line The string to process.252 ## @param delimiter The delimiter string to split 'line' with.253 ## @return A list of 'cleaned' field strings.254 ## @note Any fields that were initially zero length will be removed.255 #def clean_line(line,delimiter):256 # """Remove whitespace257 # """258 #259 # line = line.strip()260 # numbers = line.split(delimiter)261 #262 # i = len(numbers) - 1263 # while i >= 0:264 # if numbers[i] == '':265 # numbers.pop(i)266 # else:267 # numbers[i] = numbers[i].strip()268 # i += -1269 #270 # return numbers271 272 249 ## 273 250 # @brief Split a string into 'clean' fields.
Note: See TracChangeset
for help on using the changeset viewer.