← Back to team overview

divmod-dev team mailing list archive

[Bug 916264] [NEW] Cascading try/except imports report duplicates

 

Public bug reported:

With the attached example file, pyflakes reports

pf.py:6: redefinition of unused 'connect' from line 3
pf.py:6: redefinition of unused 'PARSE_DECLTYPES' from line 3
pf.py:6: redefinition of unused 'PARSE_COLNAMES' from line 3

They're not redefinitions, but fallbacks in case defining them the first
time fails.  I don't know if there's a way to catch this, but it's worth
noting.

** Affects: pyflakes
     Importance: Undecided
         Status: New


** Tags: except import redefinition try

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

Title:
  Cascading try/except imports report duplicates

Status in Pyflakes:
  New

Bug description:
  With the attached example file, pyflakes reports

  pf.py:6: redefinition of unused 'connect' from line 3
  pf.py:6: redefinition of unused 'PARSE_DECLTYPES' from line 3
  pf.py:6: redefinition of unused 'PARSE_COLNAMES' from line 3

  They're not redefinitions, but fallbacks in case defining them the
  first time fails.  I don't know if there's a way to catch this, but
  it's worth noting.

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


Follow ups

References