From addc11edf0cad647bfaf2bb17354cd82eff2877b Mon Sep 17 00:00:00 2001 From: Just van Rossum Date: Thu, 9 Jan 2003 22:54:37 +0000 Subject: [PATCH] removed silly & mask, avoiding FutureWarning --- Mac/Tools/IDE/Wmenus.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Mac/Tools/IDE/Wmenus.py b/Mac/Tools/IDE/Wmenus.py index 02e6e5d2500..bd119a522a5 100644 --- a/Mac/Tools/IDE/Wmenus.py +++ b/Mac/Tools/IDE/Wmenus.py @@ -111,7 +111,7 @@ class PopupWidget(Wbase.ClickableWidget): self.menu.menu.EnableMenuItem(0) reply = self.menu.menu.PopUpMenuSelect(t, l, 1) if reply: - id = (reply & 0xffff0000) >> 16 + id = reply >> 16 item = reply & 0xffff self._menu_callback(id, item) self._emptymenu() @@ -200,7 +200,7 @@ class PopupMenu(PopupWidget): self.menu.menu.EnableMenuItem(0) reply = self.menu.menu.PopUpMenuSelect(t, l, 1) if reply: - id = (reply & 0xffff0000) >> 16 + id = reply >> 16 item = reply & 0xffff self._menu_callback(id, item)