diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2019-11-12 16:57:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-12 16:57:03 +0200 |
commit | 138ccbb02216ca086047c3139857fb44f3dab1f9 (patch) | |
tree | 650ba3584d4d173fe36d757063909a09f239ebf2 /Lib/tkinter/__init__.py | |
parent | bpo-36974: expand call protocol documentation (GH-13844) (diff) | |
download | cpython-138ccbb02216ca086047c3139857fb44f3dab1f9.tar.gz cpython-138ccbb02216ca086047c3139857fb44f3dab1f9.tar.bz2 cpython-138ccbb02216ca086047c3139857fb44f3dab1f9.zip |
bpo-38738: Fix formatting of True and False. (GH-17083)
* "Return true/false" is replaced with "Return ``True``/``False``"
if the function actually returns a bool.
* Fixed formatting of some True and False literals (now in monospace).
* Replaced "True/False" with "true/false" if it can be not only bool.
* Replaced some 1/0 with True/False if it corresponds the code.
* "Returns <bool>" is replaced with "Return <bool>".
Diffstat (limited to 'Lib/tkinter/__init__.py')
-rw-r--r-- | Lib/tkinter/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/tkinter/__init__.py b/Lib/tkinter/__init__.py index 5d5cf90e0bd..a3378d012fb 100644 --- a/Lib/tkinter/__init__.py +++ b/Lib/tkinter/__init__.py @@ -1053,7 +1053,7 @@ class Misc: return self.tk.call('winfo', 'class', self._w) def winfo_colormapfull(self): - """Return true if at the last color request the colormap was full.""" + """Return True if at the last color request the colormap was full.""" return self.tk.getboolean( self.tk.call('winfo', 'colormapfull', self._w)) @@ -3226,7 +3226,7 @@ class Listbox(Widget, XView, YView): select_clear = selection_clear def selection_includes(self, index): - """Return 1 if INDEX is part of the selection.""" + """Return True if INDEX is part of the selection.""" return self.tk.getboolean(self.tk.call( self._w, 'selection', 'includes', index)) |