Opened 13 years ago
Closed 13 years ago
#16200 closed Bug (fixed)
__init__ of TemplateIfParser has return statement
Reported by: | Dmitry Trofimov | 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 |
Description
Attachments (1)
Change History (5)
by , 13 years ago
Attachment: | return-removed.patch added |
---|
comment:1 by , 13 years ago
Has patch: | set |
---|
comment:2 by , 13 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:3 by , 13 years ago
Triage Stage: | Accepted → 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.
Note:
See TracTickets
for help on using tickets.
This
return
statement was harmless becausesuper(...)
returnedNone
anyvway.But it's better to remove it, since
__init__
is not allowed to return a value <http://docs.python.org/reference/datamodel.html#object.__init__>.