← Back to team overview

divmod-dev team mailing list archive

[Bug 950369] Re: Detect broken string templates that will raise ValueError when interpolated

 

A patch to implement this was sent to the mailing list,
https://lists.launchpad.net/divmod-dev/msg00193.html

-- 
You received this bug notification because you are a member of Divmod-
dev, which is the registrant for Pyflakes.
https://bugs.launchpad.net/bugs/950369

Title:
  Detect broken string templates that will raise ValueError when
  interpolated

Status in Pyflakes:
  New

Bug description:
  For example, code like this will break:

    >>> "%(foo)" % {"foo": "bar"}
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    ValueError: incomplete format

  It'd be awesome if Pyflakes told me about that kind of issue.

To manage notifications about this bug go to:
https://bugs.launchpad.net/pyflakes/+bug/950369/+subscriptions


References