stack.erp5: Use an iterator to produce port numbers.
Each loop in jinja2 has its own scope. This code was likely relying on a bug, which was probably recently fixed upstream. Using generators is cleaner as it better expresses the intent.
Showing
Please register or sign in to comment