Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d28de23

Browse files
committed
Fixed a multi-arg append() call, discovered by Mark Favas.
Also removed some unnecessary backslases (inside parens).
1 parent 7733e12 commit d28de23

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Lib/lib-old/fmt.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,9 @@ def addword(self, text, space):
222222
self.para.just = self.just
223223
self.nextfont = self.font
224224
space = int(space * self.space)
225-
self.para.words.append(self.nextfont, text, \
226-
self.d.textwidth(text), space, space, \
227-
self.ascent, self.descent)
225+
self.para.words.append((self.nextfont, text,
226+
self.d.textwidth(text), space, space,
227+
self.ascent, self.descent))
228228
self.nextfont = None
229229
#
230230
def bgn_anchor(self, id):
@@ -499,7 +499,7 @@ def showanchor(self, id):
499499
long2 = i, len(p.extract())
500500
hit = long1, long2
501501
self.setselection(hit)
502-
self.window.show( \
502+
self.window.show(
503503
(p.left, p.top), (p.right, p.bottom))
504504
break
505505

0 commit comments

Comments
 (0)