mirror of https://github.com/GNOME/gimp.git
Comparision to None should be done with "is" or "is not"
https://www.python.org/dev/peps/pep-0008/#programming-recommendations
This commit is contained in:
parent
46e5e4d478
commit
09d1a3c82f
|
@ -109,7 +109,7 @@ def main ():
|
|||
|
||||
scriptdir_loc = os.path.dirname (os.path.realpath (__file__))
|
||||
targets_loc = os.path.join (scriptdir_loc, "targets")
|
||||
if packages_loc == None:
|
||||
if packages_loc is None:
|
||||
packages_loc = os.path.join (targets_loc, "packages")
|
||||
|
||||
run (targets_loc, packages_loc)
|
||||
|
|
|
@ -52,7 +52,7 @@ class pixel_fetcher:
|
|||
row = y / self.tile_height
|
||||
rowoff = y % self.tile_height
|
||||
|
||||
if col != self.col or row != self.row or self.tile == None:
|
||||
if col != self.col or row != self.row or self.tile is None:
|
||||
self.tile = self.drawable.get_tile(False, row, col)
|
||||
self.col = col
|
||||
self.row = row
|
||||
|
|
Loading…
Reference in New Issue