Opened 4 years ago

Closed 4 years ago

#16200 closed Bug (fixed)

__init__ of TemplateIfParser has return statement

Reported by: traff Owned by: nobody
Component: Template system Version: 1.3
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


Attachments (1)

return-removed.patch (585 bytes) - added by traff 4 years ago.

Download all attachments as: .zip

Change History (5)

Changed 4 years ago by traff

comment:1 Changed 4 years ago by traff

  • Has patch set
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 4 years ago by aaugustin

  • Triage Stage changed from Unreviewed to Accepted

This return statement was harmless because super(...) returned None anyvway.

But it's better to remove it, since __init__ is not allowed to return a value <>.

comment:3 Changed 4 years ago by aaugustin

  • Triage Stage changed from Accepted to Ready for checkin

The patch is all right, except for the fact that it contains \r\n end-of-lines. It's still possible to apply it as-is.

comment:4 Changed 4 years ago by jezdez

  • Resolution set to fixed
  • Status changed from new to closed

In [16410]:

Fixed #16200 -- Stopped TemplateIfParser from returning something in __init__. Thanks, traff.

Note: See TracTickets for help on using tickets.
Back to Top