From c9b9d796e6d5e400035e255f342ebcb05b830ec1 Mon Sep 17 00:00:00 2001 From: Ronny Pfannschmidt Date: Fri, 9 Mar 2018 10:22:43 +0100 Subject: [PATCH] remove dead code --- _pytest/nodes.py | 1 - 1 file changed, 1 deletion(-) diff --git a/_pytest/nodes.py b/_pytest/nodes.py index 7d802004f..e076d5747 100644 --- a/_pytest/nodes.py +++ b/_pytest/nodes.py @@ -227,7 +227,6 @@ class Node(object): def listextrakeywords(self): """ Return a set of all extra keywords in self and any parents.""" extra_keywords = set() - item = self for item in self.listchain(): extra_keywords.update(item.extra_keyword_matches) return extra_keywords