Bug#737987: pychecker: False warning with complex format string parameters

2014-02-07 Thread Guido Günther
Package: pychecker
Version: 0.8.19-8
Severity: normal

Hi,

using

foo = 'foo'
baz = 'baz'
print %s%s % ('bar' if foo else '', baz)

pychecker fails with

test.py:3: Format string argument count (0) doesn't match arguments (2)

It seems to fail to count the number of tuple arguments. Moving the 'if
.. else' outside of the tuple works around this.
Cheers,
 -- Guido

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'testing-updates'), (500, 'unstable'), 
(1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.14.0-rc1+ (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages pychecker depends on:
ii  python  2.7.5-5

pychecker recommends no packages.

pychecker suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#737987: pychecker: False warning with complex format string parameters

2014-02-07 Thread Kenneth Pronovici
On Fri, Feb 7, 2014 at 2:57 AM, Guido Günther a...@sigxcpu.org wrote:
 Package: pychecker
 Version: 0.8.19-8
 Severity: normal
 It seems to fail to count the number of tuple arguments. Moving the 'if
 .. else' outside of the tuple works around this.

I'll submit this upstream and tie the bug report back here into the
BTS.  However, upstream isn't very active, so it's unlikely this will
be fixed any time soon.

KEN


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org