summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorJust van Rossum <just@letterror.com>2003-01-09 22:54:37 (GMT)
committerJust van Rossum <just@letterror.com>2003-01-09 22:54:37 (GMT)
commitaddc11edf0cad647bfaf2bb17354cd82eff2877b (patch)
treeb15754b07affc850dfd49e3d9099555b4577a17f /Mac
parent6706c4d5fdea06db75cec76bd4815d9cecea108f (diff)
downloadcpython-addc11edf0cad647bfaf2bb17354cd82eff2877b.zip
cpython-addc11edf0cad647bfaf2bb17354cd82eff2877b.tar.gz
cpython-addc11edf0cad647bfaf2bb17354cd82eff2877b.tar.bz2
removed silly & mask, avoiding FutureWarning
Diffstat (limited to 'Mac')
-rw-r--r--Mac/Tools/IDE/Wmenus.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Mac/Tools/IDE/Wmenus.py b/Mac/Tools/IDE/Wmenus.py
index 02e6e5d..bd119a5 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)