Ethan Furman wrote: > # after new protocol with bytes/str support > def zingar(a_path): > a_path = fspath(a_path) > if not isinstance(a_path, (bytes,str)): > raise TypeError('bytes or str required') > ... I think that one would be just def zingar(a_path): a_path = fspath(a_path) because fspath() would presumably check the result for str/bytesness itself. At least I can't think of a reason for it not to, since returning either str or bytes is part of its contract. -- Greg
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4