]> granicus.if.org Git - python/commitdiff
Fix a typo in Barry's checkin.
authorGuido van Rossum <guido@python.org>
Sun, 27 Feb 2000 15:35:47 +0000 (15:35 +0000)
committerGuido van Rossum <guido@python.org>
Sun, 27 Feb 2000 15:35:47 +0000 (15:35 +0000)
Reported both by Gerrit Holl and Mark Favas.

Lib/lib-tk/Tkinter.py

index a95bf42b56e4d20bce9fbc438a669aae739f86df..9d0ea883348a8db3e3ca28f60d8d591676c2103b 100644 (file)
@@ -1810,7 +1810,7 @@ class OptionMenu(Menubutton):
                self.menuname = menu._w
                # 'command' is the only supported keyword
                callback = kwargs.get('command')
-               if kwargs.has_key('command')
+               if kwargs.has_key('command'):
                        del kwargs['command']
                if kwargs:
                        raise TclError, 'unknown option -'+kwargs.keys()[0]