Skip to content

Commit

Permalink
Comment out the other change (integration tests still stuck)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddelange committed Oct 17, 2024
1 parent ed73256 commit f391257
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion smart_open/ftp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion smart_open/smart_open_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f391257

Please sign in to comment.