From 101332316a4370e55ec8b1310451bbf47e13a0a6 Mon Sep 17 00:00:00 2001 From: deix Date: Mon, 28 Aug 2017 18:37:12 +0200 Subject: [PATCH] Another comparisons to singletons... --- py/Aireplay.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/py/Aireplay.py b/py/Aireplay.py index 3d58fc8..74c97d0 100644 --- a/py/Aireplay.py +++ b/py/Aireplay.py @@ -28,9 +28,9 @@ class WEPAttackType(object): ''' self.value = None self.name = None - if type(var) == int: + if type(var) is int: for (name,value) in WEPAttackType.__dict__.iteritems(): - if type(value) == int: + if type(value) is int: if value == var: self.name = name self.value = value @@ -38,7 +38,7 @@ class WEPAttackType(object): raise Exception("Attack number %d not found" % var) elif type(var) == str: for (name,value) in WEPAttackType.__dict__.iteritems(): - if type(value) == int: + if type(value) is int: if name == var: self.name = name self.value = value