mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-22 18:07:57 +00:00
Use 'is None' instead of '== None'
Signed-off-by: Adrian Reber <areber@redhat.com>
This commit is contained in:
parent
820525fe8d
commit
1d403eb18a
@ -718,7 +718,7 @@ class coredump_generator:
|
||||
# than one from maped file on disk.
|
||||
page = page_mem
|
||||
|
||||
if page == None:
|
||||
if page is None:
|
||||
# Hole
|
||||
page = PAGESIZE * "\0"
|
||||
|
||||
|
@ -133,7 +133,7 @@ def ftype_find_in_image(opts, ft, fid, img):
|
||||
if f:
|
||||
return f[ft['field']]
|
||||
|
||||
if ft['img'] == None:
|
||||
if ft['img'] is None:
|
||||
ft['img'] = pycriu.images.load(dinf(opts, img))['entries']
|
||||
for f in ft['img']:
|
||||
if f['id'] == fid:
|
||||
|
Loading…
x
Reference in New Issue
Block a user