X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=bup.git;a=blobdiff_plain;f=lib%2Fbup%2Fhelpers.py;fp=lib%2Fbup%2Fhelpers.py;h=81770339e4955543a498b134f7ad0b329a83c9b6;hp=3636c13ef4136fd2e00bcf9bdddeefb5608c60dc;hb=fa23889ae9be56bf8eea984fdb06a21781ac3a9a;hpb=425d2ad2ee8013d9bbc65d5727dae27bb323857a diff --git a/lib/bup/helpers.py b/lib/bup/helpers.py index 3636c13..8177033 100644 --- a/lib/bup/helpers.py +++ b/lib/bup/helpers.py @@ -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