Opened 9 years ago

Last modified 9 years ago

#25825 closed Bug

Template Origin is missing an __ne__ implementation — at Initial Version

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

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 (0)

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