]> arthur.barton.de Git - bup.git/blobdiff - lib/bup/helpers.py
pylint: replace multiple errno comparisons with "in"
[bup.git] / lib / bup / helpers.py
index 3636c13ef4136fd2e00bcf9bdddeefb5608c60dc..81770339e4955543a498b134f7ad0b329a83c9b6 100644 (file)
@@ -856,7 +856,7 @@ if _mincore:
             try:
                 m = io.mmap(fd, msize, mmap.MAP_PRIVATE, 0, 0, pos)
             except mmap.error as ex:
-                if ex.errno == errno.EINVAL or ex.errno == errno.ENODEV:
+                if ex.errno in (errno.EINVAL, errno.ENODEV):
                     # Perhaps the file was a pipe, i.e. "... | bup split ..."
                     return None
                 raise ex