taskformula: replace vars in dictionary keys
ClosedPublic

Authored by kparal on Mar 23 2017, 12:53 PM.

Details

Summary

Allow to replace vars also in dictionary keys. This is required e.g. for
current depcheck/rpmdeplint formula, which uses nested python
dictionaries when passing data to a python directive.

Test Plan

test suite works, and also my patched rpmdeplint formula now works

Diff Detail

Repository
rLTRN libtaskotron
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
kparal created this revision.Mar 23 2017, 12:53 PM
jskladan accepted this revision.Mar 24 2017, 9:21 AM

I'd like to see some inline comments, but looks good otherwise

libtaskotron/taskformula.py
161–163

pls comment the purpose

This revision is now accepted and ready to land.Mar 24 2017, 9:21 AM
Closed by commit rLTRNcb1f5d59a884: taskformula: replace vars in dictionary keys (authored by Kamil Páral <kparal@redhat.com>). · Explain WhyMar 24 2017, 9:25 AM
This revision was automatically updated to reflect the committed changes.