From 715c610c257e0f85bccf7b47aca6a09a45023486 Mon Sep 17 00:00:00 2001 From: ddelange <14880945+ddelange@users.noreply.github.com> Date: Sun, 15 Dec 2024 16:06:06 +0100 Subject: [PATCH] Simplify --- smart_open/hdfs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smart_open/hdfs.py b/smart_open/hdfs.py index a1cf3485..083e793f 100644 --- a/smart_open/hdfs.py +++ b/smart_open/hdfs.py @@ -143,7 +143,7 @@ def __init__(self, uri): @property def closed(self): - return self._sub is None or self._sub.stdin.closed + return self._sub is None def close(self): if self.closed: