summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/tooltip.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-04-24 01:09:46 (GMT)
committerGitHub <noreply@github.com>2023-04-24 01:09:46 (GMT)
commit5054459678db1f9737e31b96a859112dbac98c52 (patch)
tree68abcce9e4295ab2c6c42342345406d0bd3c6006 /Lib/idlelib/tooltip.py
parent7b2ac6cf3dd33d591d0e14a020c84aa331d29932 (diff)
downloadcpython-5054459678db1f9737e31b96a859112dbac98c52.zip
cpython-5054459678db1f9737e31b96a859112dbac98c52.tar.gz
cpython-5054459678db1f9737e31b96a859112dbac98c52.tar.bz2
[3.11] gh-103668: Run pyugrade on idlelib (GH-103671) (#103730)
--------- (cherry picked from commit bd2dca035af88694e25fb060f984fbbcda82bed8) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> Co-authored-by: Terry Jan Reedy tjreedy@udel.edu
Diffstat (limited to 'Lib/idlelib/tooltip.py')
-rw-r--r--Lib/idlelib/tooltip.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/idlelib/tooltip.py b/Lib/idlelib/tooltip.py
index d714318..3983690 100644
--- a/Lib/idlelib/tooltip.py
+++ b/Lib/idlelib/tooltip.py
@@ -92,7 +92,7 @@ class OnHoverTooltipBase(TooltipBase):
e.g. after hovering over the anchor widget with the mouse for enough
time.
"""
- super(OnHoverTooltipBase, self).__init__(anchor_widget)
+ super().__init__(anchor_widget)
self.hover_delay = hover_delay
self._after_id = None
@@ -107,7 +107,7 @@ class OnHoverTooltipBase(TooltipBase):
self.anchor_widget.unbind("<Button>", self._id3) # pragma: no cover
except TclError:
pass
- super(OnHoverTooltipBase, self).__del__()
+ super().__del__()
def _show_event(self, event=None):
"""event handler to display the tooltip"""
@@ -139,7 +139,7 @@ class OnHoverTooltipBase(TooltipBase):
self.unschedule()
except TclError: # pragma: no cover
pass
- super(OnHoverTooltipBase, self).hidetip()
+ super().hidetip()
class Hovertip(OnHoverTooltipBase):
@@ -154,7 +154,7 @@ class Hovertip(OnHoverTooltipBase):
e.g. after hovering over the anchor widget with the mouse for enough
time.
"""
- super(Hovertip, self).__init__(anchor_widget, hover_delay=hover_delay)
+ super().__init__(anchor_widget, hover_delay=hover_delay)
self.text = text
def showcontents(self):