Opened 9 years ago

Closed 9 years ago

#6398 defect closed wontfix (wontfix)

Attribute self misspelled in method getheaders of class twisted.web.client._FakeUrllib2Response

Reported by: moijes12 Owned by:
Priority: normal Milestone:
Component: web Keywords: easy
Cc: jknight Branch:
Author:

Description

The attribute self of method _Meta.getheaders which is internal to class twisted.web.client._FakeUrllib2Response is spelt as zelf.

Change History (3)

comment:1 Changed 9 years ago by DefaultCC Plugin

comment:2 Changed 9 years ago by moijes12

Keywords: easy added

comment:3 Changed 9 years ago by Jonathan Jacobs

Resolution: wontfix
Status: newclosed

This is actually intentional since the code in question wishes to interact with the self in the containing scope, not the instance passed to the _Meta.getheaders method; renaming it to "self" would mask that name.

Perhaps it might be beneficial to add a comment to document this quirk, please re-open this ticket if you wish to do that.

Note: See TracTickets for help on using tickets.