mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-28 12:57: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.
|
# than one from maped file on disk.
|
||||||
page = page_mem
|
page = page_mem
|
||||||
|
|
||||||
if page == None:
|
if page is None:
|
||||||
# Hole
|
# Hole
|
||||||
page = PAGESIZE * "\0"
|
page = PAGESIZE * "\0"
|
||||||
|
|
||||||
|
@ -133,7 +133,7 @@ def ftype_find_in_image(opts, ft, fid, img):
|
|||||||
if f:
|
if f:
|
||||||
return f[ft['field']]
|
return f[ft['field']]
|
||||||
|
|
||||||
if ft['img'] == None:
|
if ft['img'] is None:
|
||||||
ft['img'] = pycriu.images.load(dinf(opts, img))['entries']
|
ft['img'] = pycriu.images.load(dinf(opts, img))['entries']
|
||||||
for f in ft['img']:
|
for f in ft['img']:
|
||||||
if f['id'] == fid:
|
if f['id'] == fid:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user