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 townerj
Recipients townerj
Date 2008-01-06.12:18:24
SpamBayes Score 0.08132262
Marked as misclassified No
Message-id <1199621906.39.0.0862491717843.issue1742@psf.upfronthosting.co.za>
In-reply-to
Content
os.path.relpath fails with an exception on both Windows and Unix systems
(ntpath and posixpath modules) when the given path and the start path
are equal. Better behavior here might be to return an empty string or
perhaps os.path.curdir.

>>> os.path.relpath("test", "test")
Traceback (most recent call last):
  File "<pyshell#40>", line 1, in <module>
    os.path.relpath("test", "test")
  File "C:\Program Files\Python3K\Lib\ntpath.py", line 495, in relpath
    return join(*rel_list)
TypeError: join() takes at least 1 positional argument (0 given)
History
Date User Action Args
2008-01-06 12:18:26townerjsetspambayes_score: 0.0813226 -> 0.08132262
recipients: + townerj
2008-01-06 12:18:26townerjsetspambayes_score: 0.0813226 -> 0.0813226
messageid: <1199621906.39.0.0862491717843.issue1742@psf.upfronthosting.co.za>
2008-01-06 12:18:25townerjlinkissue1742 messages
2008-01-06 12:18:24townerjcreate