1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-07 13:11:28 +00:00

Replace == and != with is and is not for comparisons with None

This commit is contained in:
dmiller
2014-01-09 16:47:20 +00:00
parent 96141b431e
commit 51b143353b
18 changed files with 61 additions and 64 deletions

View File

@@ -1091,7 +1091,7 @@ class ControlNavigation(gtk.DrawingArea):
direction = self.__move_is_clicked(pointer)
if direction != None and self.__moving == None:
if direction is not None and self.__moving is None:
event.window.set_cursor(gtk.gdk.Cursor(gtk.gdk.HAND2))
self.__moving = direction
@@ -1285,7 +1285,7 @@ class ControlNavigation(gtk.DrawingArea):
def __move_in_direction(self, direction):
"""
"""
if self.__moving != None:
if self.__moving is not None:
bx, by = self.__move_position
ax, ay = self.__move_addition[direction]