diff options
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/clinic/clinic.py | 1 | ||||
-rw-r--r-- | Tools/pynche/ColorDB.py | 4 |
2 files changed, 1 insertions, 4 deletions
diff --git a/Tools/clinic/clinic.py b/Tools/clinic/clinic.py index 65bad51..5dcaa93 100755 --- a/Tools/clinic/clinic.py +++ b/Tools/clinic/clinic.py @@ -1830,7 +1830,6 @@ __gt__ __hash__ __iadd__ __iand__ -__idivmod__ __ifloordiv__ __ilshift__ __imod__ diff --git a/Tools/pynche/ColorDB.py b/Tools/pynche/ColorDB.py index fcf1b87..5ced0e7 100644 --- a/Tools/pynche/ColorDB.py +++ b/Tools/pynche/ColorDB.py @@ -23,7 +23,6 @@ color formats, and for calculating other color values. import sys import re from types import * -import operator class BadColor(Exception): pass @@ -230,9 +229,8 @@ def triplet_to_rrggbb(rgbtuple): return hexname -_maxtuple = (256.0,) * 3 def triplet_to_fractional_rgb(rgbtuple): - return list(map(operator.__div__, rgbtuple, _maxtuple)) + return [x / 256 for x in rgbtuple] def triplet_to_brightness(rgbtuple): |