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 <1517097684.51.0.467229070634.issue32689@psf.upfronthosting.co.za>
In-reply-to
Content
>>> 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/shutil.py", line 540, in move
    real_dst = os.path.join(dst, _basename(src))
  File "/usr/lib/python3.6/shutil.py", line 504, in _basename
    return os.path.basename(path.rstrip(sep))
AttributeError: 'PosixPath' object has no attribute 'rstrip'
History
Date User Action Args
2018-01-28 00:01:24craighsetrecipients: + craigh
2018-01-28 00:01:24craighsetmessageid: <1517097684.51.0.467229070634.issue32689@psf.upfronthosting.co.za>
2018-01-28 00:01:24craighlinkissue32689 messages
2018-01-28 00:01:24craighcreate