mirror of
https://github.com/python/cpython.git
synced 2025-11-02 19:12:55 +00:00
Fixed a multi-arg append() call, discovered by Mark Favas.
Also removed some unnecessary backslases (inside parens).
This commit is contained in:
parent
7733e12c9c
commit
d28de23bda
1 changed files with 4 additions and 4 deletions
|
|
@ -222,9 +222,9 @@ class BaseFormatter:
|
||||||
self.para.just = self.just
|
self.para.just = self.just
|
||||||
self.nextfont = self.font
|
self.nextfont = self.font
|
||||||
space = int(space * self.space)
|
space = int(space * self.space)
|
||||||
self.para.words.append(self.nextfont, text, \
|
self.para.words.append((self.nextfont, text,
|
||||||
self.d.textwidth(text), space, space, \
|
self.d.textwidth(text), space, space,
|
||||||
self.ascent, self.descent)
|
self.ascent, self.descent))
|
||||||
self.nextfont = None
|
self.nextfont = None
|
||||||
#
|
#
|
||||||
def bgn_anchor(self, id):
|
def bgn_anchor(self, id):
|
||||||
|
|
@ -499,7 +499,7 @@ class StdwinBackEnd(SavingBackEnd):
|
||||||
long2 = i, len(p.extract())
|
long2 = i, len(p.extract())
|
||||||
hit = long1, long2
|
hit = long1, long2
|
||||||
self.setselection(hit)
|
self.setselection(hit)
|
||||||
self.window.show( \
|
self.window.show(
|
||||||
(p.left, p.top), (p.right, p.bottom))
|
(p.left, p.top), (p.right, p.bottom))
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue