Opened 9 years ago

Last modified 9 years ago

#25825 closed Bug

Template Origin is missing an __ne__ implementation — at Version 1

Reported by: Jaap Roes Owned by: nobody
Component: Uncategorized Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Baptiste Mispelon)

On Python 2.7 a template Origin can be both equal and not equal at the same time due to a missing __ne__ implementation.

>>> a = self.engine.get_template('index.html')
>>> b = self.engine.get_template('index.html')
>>> a.origin == b.origin
True
>>> a.origin != b.origin
True

Change History (1)

comment:1 by Baptiste Mispelon, 9 years ago

Description: modified (diff)
Triage Stage: UnreviewedAccepted
Note: See TracTickets for help on using tickets.
Back to Top