From f391257df811ab1731de77f4dfd566e87cf4c8a3 Mon Sep 17 00:00:00 2001 From: ddelange <14880945+ddelange@users.noreply.github.com> Date: Thu, 17 Oct 2024 11:43:26 +0200 Subject: [PATCH] Comment out the other change (integration tests still stuck) --- smart_open/ftp.py | 2 +- smart_open/smart_open_lib.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/smart_open/ftp.py b/smart_open/ftp.py index 7e767b32..f5196f65 100644 --- a/smart_open/ftp.py +++ b/smart_open/ftp.py @@ -169,5 +169,5 @@ def full_close(self): fobj.socket = socket fobj.conn = conn fobj.close = types.MethodType(full_close, fobj) - fobj.name = path + # fobj.name = path return fobj diff --git a/smart_open/smart_open_lib.py b/smart_open/smart_open_lib.py index bbb5864d..03abecd4 100644 --- a/smart_open/smart_open_lib.py +++ b/smart_open/smart_open_lib.py @@ -222,7 +222,7 @@ def open( raise NotImplementedError(ve.args[0]) binary = _open_binary_stream(uri, binary_mode, transport_params) - # assert hasattr(binary, "name"), "missing 'name' attr (for INFER_FROM_EXTENSION)" + assert hasattr(binary, "name"), "missing 'name' attr (for INFER_FROM_EXTENSION)" decompressed = so_compression.compression_wrapper(binary, binary_mode, compression) if 'b' not in mode or explicit_encoding is not None: