Skip to content
Commit d1a5678c authored by Daniel Silverstone's avatar Daniel Silverstone
Browse files

_site.py: Reduce complexity of bwrap version comparison



Instead of an if/else ladder which is quite complex, this patch
uses the fact that Python supports by-component tuple comparison
to simply compare two (major, minor, patch) tuples

Signed-off-by: default avatarDaniel Silverstone <daniel.silverstone@codethink.co.uk>
parent 3f81c361
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment