diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-03-29 15:24:25 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-03-29 15:24:25 (GMT) |
commit | 5b63acd31e0e40c1a9a9e9762905b0054ff37994 (patch) | |
tree | 763a6e10d4c0fa64797f5311491a3cbeb0f7e5d9 /Lib/lib-tk/turtle.py | |
parent | 672fbf519568bc295aa64992dcbabe0eebccb5fc (diff) | |
download | cpython-5b63acd31e0e40c1a9a9e9762905b0054ff37994.zip cpython-5b63acd31e0e40c1a9a9e9762905b0054ff37994.tar.gz cpython-5b63acd31e0e40c1a9a9e9762905b0054ff37994.tar.bz2 |
#2503 make singletons compared with "is" not == or !=
Thanks to Wummel for the patch
Diffstat (limited to 'Lib/lib-tk/turtle.py')
-rw-r--r-- | Lib/lib-tk/turtle.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/lib-tk/turtle.py b/Lib/lib-tk/turtle.py index fcde9af..e4cac29 100644 --- a/Lib/lib-tk/turtle.py +++ b/Lib/lib-tk/turtle.py @@ -749,25 +749,25 @@ def setup(**geometry): global _width, _height, _startx, _starty width = geometry.get('width',_width) - if width >= 0 or width == None: + if width >= 0 or width is None: _width = width else: raise ValueError, "width can not be less than 0" height = geometry.get('height',_height) - if height >= 0 or height == None: + if height >= 0 or height is None: _height = height else: raise ValueError, "height can not be less than 0" startx = geometry.get('startx', _startx) - if startx >= 0 or startx == None: + if startx >= 0 or startx is None: _startx = _startx else: raise ValueError, "startx can not be less than 0" starty = geometry.get('starty', _starty) - if starty >= 0 or starty == None: + if starty >= 0 or starty is None: _starty = starty else: raise ValueError, "startx can not be less than 0" |