- Timestamp:
- Feb 12, 2017, 7:30:16 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/generic_tools.py
r1437 r1444 242 242 fname = 'Str_Bool' 243 243 244 if val == 'True' or val == 'true' or val == '1' or val == 'yes' or val == 'T' or val == 't': 244 truelist = ['True', 'true', '1', 'Yes', 'yes', 'T', 't'] 245 falselist = ['False', 'false', '0', 'No', 'no', 'F', 'f'] 246 247 if searchInlist(truelist,val): 245 248 boolv = True 246 boolv = True 247 elif val == 'False' or val == 'false' or val == '0' or val== 'no' or val == 'F' or val == 'f': 249 elif searchInlist(falselist, val): 248 250 boolv = False 249 251 else: … … 9575 9577 'Ä·': '\\c{k}', 'ÄŒ': '\\c{l}', 'Å': '\\c{n}', 'Å': '\\c{r}', 'Å': '\\c{s}', \ 9576 9578 'Å£': '\\c{t}', \ 9577 'Å': '\\l{}', 'Þ': '\\o{}', 'Ä': '\\dj ', 'Ã': '\\ss{}',\9579 'Å': '\\l{}', 'Þ': '\\o{}', 'Ä': '\\dj{}', 'Ã': '\\ss{}', \ 9578 9580 'Ê': '\\ae{}', 'Å': '\\oe{}', \ 9579 9581 'Ã': "\\'A", 'Ã': "\\'E", 'Ã': "\\'I", 'Ã': "\\'O", 'Ã': "\\'U", \ … … 9601 9603 ': '\\c{N}', 'Å': '\\c{R}', 'Å': '\\c{S}', \ 9602 9604 'Å¢': '\\c{T}', \ 9603 'Å': '\\L{}', 'Ã': '\\O{}', 'Ä': '\\DJ ',\9605 'Å': '\\L{}', 'Ã': '\\O{}', 'Ä': '\\DJ{}', \ 9604 9606 'Ã': '\\AE{}', 'Å': '\\OE{}', \ 9605 9607 # '¡': '!`, '¿': '¿`'
Note: See TracChangeset
for help on using the changeset viewer.