Searched refs:patch_pathlib (Results 1 – 4 of 4) sorted by relevance
444 class patch_pathlib(object): class
466 …Path.open()` is not able to read text from compressed files, so use ``patch_pathlib`` to replace i…472 >>> from smart_open.smart_open_lib import patch_pathlib474 >>> _ = patch_pathlib() # replace `Path.open` with `smart_open.open`
455 The built-in `Path.open()` is not able to read text from compressed files, so use ``patch_pathlib``…461 >>> from smart_open.smart_open_lib import patch_pathlib463 >>> _ = patch_pathlib() # replace `Path.open` with `smart_open.open`