(parts)
| 59 | |
| 60 | |
| 61 | def _py2_fsencode(parts): |
| 62 | # py2 => minimal unicode support |
| 63 | assert pycompat.PY2 |
| 64 | return [part.encode('ascii') if isinstance(part, pycompat.text_type) |
| 65 | else part for part in parts] |
| 66 | |
| 67 | |
| 68 | def _try_except_fileexistserror(try_func, except_func, else_func=None): |