This addresses and solves #64 and fixes the recursive expansion while keeping branches with braces in their names working as they should.
I have also run some timing tests and it basically doesn't change w.r.t. to the previous solution.
The solution is a copy from
https://rosettacode.org/wiki/Brace_expansion#Python
with some minor adaptions to clearer variable names and at least a sentence describing the functionality. I am not entirely sure about the licensing but as far as I can tell it should be OK.
Coverage decreased (-0.7%) to 90.351% when pulling 1a7b20ff166740ae69694dc283bd4fa9cd069871 on tmadlener:fix-recursive-brace-expansion into b7f74796de41313d10c65533671266163cb59999 on scikit-hep:master.
This addresses and solves #64 and fixes the recursive expansion while keeping branches with braces in their names working as they should.
I have also run some timing tests and it basically doesn't change w.r.t. to the previous solution.
The solution is a copy from https://rosettacode.org/wiki/Brace_expansion#Python with some minor adaptions to clearer variable names and at least a sentence describing the functionality. I am not entirely sure about the licensing but as far as I can tell it should be OK.