From 383e79a77a8fad5777c166d114ea9f5a4cacc2d2 Mon Sep 17 00:00:00 2001 From: Filipe Laíns Date: Thu, 24 Jun 2021 16:34:59 +0100 Subject: hidraw: do not set O_NONBLOCK unecessarily MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Filipe Laíns --- ioctl/hidraw.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'ioctl/hidraw.py') diff --git a/ioctl/hidraw.py b/ioctl/hidraw.py index e41c714..037a93a 100644 --- a/ioctl/hidraw.py +++ b/ioctl/hidraw.py @@ -2,7 +2,6 @@ import array import ctypes -import fcntl import os from typing import List, Tuple @@ -52,7 +51,6 @@ class Hidraw(object): self._path = path self._fd = os.open(path, os.O_RDWR) self.read_length = read_length - fcntl.fcntl(self._fd, fcntl.F_SETFL, os.O_NONBLOCK) def __str__(self) -> str: return f'Hidraw({self.path})' -- cgit v1.2.3