This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author craigh
Recipients craigh
Date 2018-01-28.00:01:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
>>> import os, pathlib, shutil
>>> os.mkdir('test1')
>>> os.mkdir('test2')
>>> path = pathlib.Path('test1')
>>> shutil.move(path, 'test2')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.6/", line 540, in move
    real_dst = os.path.join(dst, _basename(src))
  File "/usr/lib/python3.6/", line 504, in _basename
    return os.path.basename(path.rstrip(sep))
AttributeError: 'PosixPath' object has no attribute 'rstrip'
Date User Action Args
2018-01-28 00:01:24craighsetrecipients: + craigh
2018-01-28 00:01:24craighsetmessageid: <>
2018-01-28 00:01:24craighlinkissue32689 messages
2018-01-28 00:01:24craighcreate