diff options
author | Ting Xu <ting.xu@intel.com> | 2023-07-03 08:08:33 +0000 |
---|---|---|
committer | Ting Xu <ting.xu@intel.com> | 2023-07-04 06:45:17 +0000 |
commit | 61762c7aac99ca5f010e3d0de812180fd0d152e1 (patch) | |
tree | dd1d6ee9b70641e21346e0676f189d9997037d66 /extras/packetforge/ParseGraph.py | |
parent | 8aa47b7a76118a451e04549bf78bece1d49bf78d (diff) |
packetforge: fix has_key invalid in python3
Python Dict attribute "has_key" was removed in Python3. Use "in"
operation instead.
Type: fix
Signed-off-by: Ting Xu <ting.xu@intel.com>
Change-Id: I7b63b0689e9970ca798921368c5616875f7d5682
Diffstat (limited to 'extras/packetforge/ParseGraph.py')
-rw-r--r-- | extras/packetforge/ParseGraph.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/packetforge/ParseGraph.py b/extras/packetforge/ParseGraph.py index 188b0732ff6..31fc3039fed 100644 --- a/extras/packetforge/ParseGraph.py +++ b/extras/packetforge/ParseGraph.py @@ -91,7 +91,7 @@ class ParseGraph: return None def GetNode(self, name): - if self.nodeDict.has_key(name): + if name in self.nodeDict: return self.nodeDict[name] return None |