2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-22 01:51:51 +00:00

Use 'is None' instead of '== None'

Signed-off-by: Adrian Reber <areber@redhat.com>
This commit is contained in:
Adrian Reber 2020-09-29 11:22:26 +00:00 committed by Andrei Vagin
parent 820525fe8d
commit 1d403eb18a
2 changed files with 2 additions and 2 deletions

View File

@ -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"

View File

@ -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: