Skip to content

Commit 4572c29

Browse files
committed
Style cleanup
1 parent e3c9a03 commit 4572c29

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pygccxml/declarations/calldef.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ def __ne__(self, other):
8585
def __lt__(self, other):
8686
if not isinstance(other, self.__class__):
8787
return self.__class__.__name__ < other.__class__.__name__
88-
if other.default_value == None:
88+
if other.default_value is None:
8989
return False
90-
if self.default_value == None:
90+
if self.default_value is None:
9191
return self.name < other.name \
9292
and self.decl_type < other.decl_type
9393
return self.name < other.name \

unittests/test_null_comparison.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ def test_argument_null_comparison(self):
2828
ns = global_ns.namespace("ns")
2929

3030
func = ns.free_function(name="TestFunction1")
31-
assert (func.arguments[0] > func.arguments[1]) == False
31+
assert (func.arguments[0] > func.arguments[1]) is False
3232

3333
func = ns.free_function(name="TestFunction2")
34-
assert (func.arguments[0] > func.arguments[1]) == False
34+
assert (func.arguments[0] > func.arguments[1]) is False
3535

3636

3737
def create_suite():

0 commit comments

Comments
 (0)