From: Thomas Jarosch Date: Sat, 25 Jan 2020 17:40:53 +0000 (+0100) Subject: Fix errno.ESPIPE error handler X-Git-Tag: v2.2~7^2~24 X-Git-Url: http://developer.intra2net.com/git/?p=python-delta-tar;a=commitdiff_plain;h=2a307f41c27c10cd86218b721f0f00e56cf3d312 Fix errno.ESPIPE error handler pylint complained: crypto.py:1632:28: E1101: Module 'os' has no 'errno' member (no-member) --- diff --git a/deltatar/crypto.py b/deltatar/crypto.py index ccec5e4..b0c863c 100755 --- a/deltatar/crypto.py +++ b/deltatar/crypto.py @@ -139,6 +139,7 @@ import stat import sys import time import types +import errno try: import enum34 except ImportError as exn: @@ -1629,7 +1630,7 @@ def depdtcrypt (mode, secret, ins, outs): try: return s.tell () except OSError as exn: - if exn.errno == os.errno.ESPIPE: + if exn.errno == errno.ESPIPE: return -1 def out (pt, outfile):