Whole file
timofurrer/colorful
The author described this change as “fix setup(colormode=NO_COLORS)”. It counts as a record because the check below fails on the code as it stood at 4d3dfab5e and passes on 8b8623413, with nothing else changed between the two runs.
Projecttimofurrer/colorful
Fix saved2020-01-05
Sharing licenceMIT · LICENSE
Change size+1 −1
What the code was meant to do, written into the code itself as a save note
fix setup(colormode=NO_COLORS)
The change
| 403 | 403 | color names to it's corresponding RGB value | |
| 404 | 404 | :param bool extend_colors: extend the active color palette instead of replacing it | |
| 405 | 405 | """ | |
| 406 | - | if colormode: | |
| 406 | + | if colormode is not None: | |
| 407 | 407 | self.colormode = colormode | |
| 408 | 408 | ||
| 409 | 409 | if colorpalette: |
The check that tells the two apart
fail→pass·tests/test_core.py::test_colorful_obj_setup_with_no_colors
Check file tests/test_core.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.
Origin and history
The code before it4d3dfab5e8ec757a5d2b8466fd0ec7ede5978cb4
Broken version dated2019-09-21
Modulecolorful.core
Units changedColorful
Fingerprint81213149db93346a
Checked2026-08-18 by goldset/0.1
Every field above is generated by our program. None of it is written by hand.