Check-in [30dd0c5b1f]
Overview
| Comment: | Got rid of switchy() expression, use plain `cond and val or ...` chain. |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
30dd0c5b1fcda5c2205c3692c1e53e7d |
| User & Date: | mario on 2015-04-07 19:48:01 |
| Other Links: | manifest | tags |
Context
|
2015-04-07
| ||
| 19:48 | Fix main. references from bookmarks callback. check-in: 5a772b3c64 user: mario tags: trunk | |
| 19:48 | Got rid of switchy() expression, use plain `cond and val or ...` chain. check-in: 30dd0c5b1f user: mario tags: trunk | |
| 05:55 | Temporary export mechanism (saves whole category into .pls file). check-in: 8b7b270591 user: mario tags: trunk | |
Changes
Modified config.py from [ca9c88608a] to [ad58239673].
| ︙ | |||
315 316 317 318 319 320 321 | 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 | - - - - - - - - - - + + + + + + + + + + - - - - + + - - - - - - |
nargs = re.findall("\\b\d+\\b|[\?\*\+]", opt["type"]) or [None]
is_arr = "[]" in (naming + typing) and nargs == [None]
is_bool= "bool" in typing
false_b = "false" in typing or opt["value"] in ("0", "false")
#print "\nname=", name, "is_arr=", is_arr, "is_bool=", is_bool, "bool_d=", false_b, "naming=", naming, "typing=", typing
# Populate partially - ArgumentParser has aversions to many parameter combinations
|
| ︙ |