Skip to content

Commit ecf787e

Browse files
ismsjayqi
authored andcommitted
Remove unnecessary .join()
1 parent 80b596f commit ecf787e

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

cloudpathlib/anypath.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,9 @@ def __new__(cls, *args, **kwargs) -> Union[CloudPath, Path]: # type: ignore
3535
return Path(*args, **kwargs)
3636
except TypeError as path_exception:
3737
raise AnyPathTypeError(
38-
" ".join(
39-
[
40-
"Invalid input for both CloudPath and Path.",
41-
f"CloudPath exception: {repr(cloudpath_exception)}",
42-
f"Path exception: {repr(path_exception)}",
43-
]
44-
)
38+
"Invalid input for both CloudPath and Path. "
39+
f"CloudPath exception: {repr(cloudpath_exception)} "
40+
f"Path exception: {repr(path_exception)}"
4541
)
4642

4743
@classmethod

0 commit comments

Comments
 (0)