Your message dated Sat, 12 Nov 2022 13:16:07 +0200
with message-id <Y2+AdwyxIbZVuxXV@localhost>
and subject line Fixed upstream in 2.1.0
has caused the Debian Bug report #992682,
regarding String formatting errors in urwid
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
992682: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=992682
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python3-urwid
Version: 2.0.1-3

When I installed this package, my terminal log included these messages:

Setting up python3-urwid (2.0.1-3) ...
/usr/lib/python3/dist-packages/urwid/tests/test_canvas.py:141: SyntaxWarning:
'str' object is not callable; perhaps you missed a comma?
  assert result == expected, "got: %r expected: %r" (result, expected)
/usr/lib/python3/dist-packages/urwid/tests/test_canvas.py:145: SyntaxWarning:
'str' object is not callable; perhaps you missed a comma?
  assert result == expected, "got: %r expected: %r" (result, expected)
/usr/lib/python3/dist-packages/urwid/tests/test_canvas.py:149: SyntaxWarning:
'str' object is not callable; perhaps you missed a comma?
  assert result == expected, "got: %r expected: %r" (result, expected)
/usr/lib/python3/dist-packages/urwid/tests/test_canvas.py:232: SyntaxWarning:
'str' object is not callable; perhaps you missed a comma?
  assert result == expected, "got: %r expected: %r" (result, expected)

Of course, it isn't a _comma_ missing in each of these cases. It's a %,
which should separate the Python 2 / printf style format string from its
tuple of arguments.

I suggest the attached patch.

Cheers,
Simon

-- 
import hashlib; print((lambda p,q,g,y,r,s,m: (lambda w:(pow(g,int(hashlib.sha1(
m.encode('ascii')).hexdigest(),16)*w%q,p)*pow(y,r*w%q,p)%p)%q)(pow(s,q-2,q))==r
and m)(0xb80b5dacabab6145,0xf70027d345023,0x7643bc4018957897,0x11c2e5d9951130c9
,0xa54d9cbe4e8ab,0x746c50eaa1910,      "Simon Tatham <[email protected]>"     ))

Attachment: urwid-percents.diff
Description: Binary data


--- End Message ---
--- Begin Message ---
Version: 2.1.0-1

Thanks for the bug report, this is fixed since 2.1.0-1.

cu
Adrian

--- End Message ---

Reply via email to