From 64691b93d3ad6b26fb95cf3fd7dae76905ec02da Mon Sep 17 00:00:00 2001 From: AntiCompositeNumber Date: Wed, 19 Aug 2020 01:03:02 -0400 Subject: [PATCH] Revert "nodes: Add __contains__ to Template" This reverts commit b87f4eef8f3320bf93a638b6b0c536a9fb3daa2e. --- mwparserfromhell/nodes/template.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/mwparserfromhell/nodes/template.py b/mwparserfromhell/nodes/template.py index 1163201..9de7641 100644 --- a/mwparserfromhell/nodes/template.py +++ b/mwparserfromhell/nodes/template.py @@ -214,9 +214,6 @@ class Template(Node): """Alias for :meth:`has`.""" return self.has(name, ignore_empty) - def __contains__(self, name): - return self.has(name) - def get(self, name, default=_UNSET): """Get the parameter whose name is *name*.