diff options
author | Barry Warsaw <barry@python.org> | 2001-07-10 21:39:18 +0000 |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2001-07-10 21:39:18 +0000 |
commit | b4d8612f2b49749560cb3c4ca20634acf55dcefa (patch) | |
tree | b307eb3affb2f809524abd91bf5f93cc0ffe3bd9 /Tools/pynche | |
parent | De-string-module-ification and other Python 2.x improvements. (diff) | |
download | cpython-b4d8612f2b49749560cb3c4ca20634acf55dcefa.tar.gz cpython-b4d8612f2b49749560cb3c4ca20634acf55dcefa.tar.bz2 cpython-b4d8612f2b49749560cb3c4ca20634acf55dcefa.zip |
__delta(): Use augmented assignments.
Diffstat (limited to 'Tools/pynche')
-rw-r--r-- | Tools/pynche/DetailsViewer.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Tools/pynche/DetailsViewer.py b/Tools/pynche/DetailsViewer.py index 3fb8a7da476..07f5acd8041 100644 --- a/Tools/pynche/DetailsViewer.py +++ b/Tools/pynche/DetailsViewer.py @@ -210,17 +210,17 @@ class DetailsViewer: red, green, blue = self.__red, self.__green, self.__blue elif atbound == WRAP or (atbound == RATIO and len(tie) < 2): if red < 0: - red = red + 256 + red += 256 if green < 0: - green = green + 256 + green += 256 if blue < 0: - blue = blue + 256 + blue += 256 if red > 255: - red = red - 256 + red -= 256 if green > 255: - green = green - 256 + green -= 256 if blue > 255: - blue = blue - 256 + blue -= 256 elif atbound == RATIO: # for when 2 or 3 colors are tied together dir = 0 |