From 2a307f41c27c10cd86218b721f0f00e56cf3d312 Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Sat, 25 Jan 2020 18:40:53 +0100 Subject: [PATCH] Fix errno.ESPIPE error handler pylint complained: crypto.py:1632:28: E1101: Module 'os' has no 'errno' member (no-member) --- deltatar/crypto.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) 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): -- 1.7.1