No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

23 líneas
471B

  1. import os
  2. from cfg_aux import *
  3. from cld import *
  4. from ht_Context import *
  5. # Construct section -> key -> value tree from config contents
  6. #
  7. # Conditions:
  8. # 1. Config contents have just become available
  9. @cld_by_value
  10. def cfg_parseConfigTree(
  11. c: ht_Context
  12. ) -> ht_Context:
  13. if (
  14. c.recentField == "cfgContents"
  15. ):
  16. c.cfgTree = cfg_aux_tree(c.cfgContents)
  17. c.recentField = "cfgTree"
  18. return c
  19. c.recentField = "none"
  20. return c