multiline statement in import error looks bogus

Create issue
Issue #106 wontfix
Maciej Fijalkowski created an issue

Attached simple example.

Basically I think it's important to have the whole statement presented in case it's a multiline statement. This applies only when there is an error during import

Comments (2)

  1. Holger Krekel repo owner

    Hum. The idea for reporting short tracebacks for ImportErrors is that it's kind of guaranteed short. You can construct cases (template strings etc.) where the resulting Traceback would again get very long, despite being presented as "--tb=short". Are you sure the probably needed added complexity and this side effects is worth the use you wished for?

  2. Log in to comment