Skip to content

Commit f195cf1

Browse files
hduelmemtwebster
authored andcommitted
replace equality None check with identity None check
1 parent b881ad7 commit f195cf1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

files/usr/bin/cinnamon-hover-click

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class HoverClickWindow(XApp.GtkWindow):
7070
button.connect("toggled", self.action_changed, action)
7171
button.connect("button-press-event", self.on_button_press_event)
7272

73-
if self.last_button != None:
73+
if self.last_button is not None:
7474
button.join_group(self.last_button)
7575
else:
7676
self.last_button = button
@@ -88,7 +88,7 @@ class HoverClickWindow(XApp.GtkWindow):
8888
self.right_click_button = make_button(_("Secondary Click"), "cinnamon-hc-right-click", "secondary")
8989
self.button_box.pack_start(self.right_click_button, True, True, 0)
9090

91-
if self.start_button != None:
91+
if self.start_button is not None:
9292
self.start_button.set_active(True)
9393

9494
self.update_layout()

files/usr/bin/cinnamon-spice-updater

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class UpdateSpices:
5353
self.updater.upgrade(update)
5454

5555
def update_spice_of_type(self, spice_type):
56-
if spice_type == None:
56+
if spice_type is None:
5757
return
5858

5959
self.updater.refresh_cache_for_type(spice_type)
@@ -69,7 +69,7 @@ class UpdateSpices:
6969
self.updater.upgrade(update)
7070

7171
def list_simple(self, spice_type):
72-
if spice_type == None:
72+
if spice_type is None:
7373
return
7474

7575
self.updater.refresh_cache_for_type(spice_type)
@@ -79,7 +79,7 @@ class UpdateSpices:
7979
print(update.uuid)
8080

8181
def list_json(self, spice_type):
82-
if spice_type == None:
82+
if spice_type is None:
8383
return
8484

8585
self.updater.refresh_cache_for_type(spice_type)

0 commit comments

Comments
 (0)