[issue34069] shutil.move fails with AttributeError

2018-07-08 Thread Berker Peksag
Berker Peksag added the comment: This is a duplicate of bpo-32689. > It should use `os.fspath(path)` to get the path as a string. PR 5393 already does that. -- nosy: +berker.peksag resolution: -> duplicate stage: needs patch -> resolved status: open -> closed superseder: -> shutil.

[issue34069] shutil.move fails with AttributeError

2018-07-08 Thread Eryk Sun
Eryk Sun added the comment: This issue isn't specific to Windows. It's a bug in shutil._basename: def _basename(path): # A basename() variant which first strips the trailing slash, if present. # Thus we always get the last component of the path, even for directories.