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 Matt.Bachmann
Recipients Matt.Bachmann, serhiy.storchaka
Date 2014-05-25.15:21:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1401031302.38.0.314879722615.issue21343@psf.upfronthosting.co.za>
In-reply-to
Content
Perhaps this is the bug I should be filing but here is why this comes up for me. 

I get different output from this function if I pass in two types.

On my machine:
os.path.relpath(u'test_srcl.txt', u'.') returns u'test_src.txt'
os.path.relpath(u'test_srcl.txt', '.') returns u'../../Users/bachmann/Code/diff-cover/diff_cover/tests/fixtures/test_src.txt'

I make a couple calls to this function, if the first call gives me back a byte string and I pass it to the second call I get the incorrect result. So I need to decode.

If the function always gave back the same type as I gave it I would not have this issue.
History
Date User Action Args
2014-05-25 15:21:42Matt.Bachmannsetrecipients: + Matt.Bachmann, serhiy.storchaka
2014-05-25 15:21:42Matt.Bachmannsetmessageid: <1401031302.38.0.314879722615.issue21343@psf.upfronthosting.co.za>
2014-05-25 15:21:42Matt.Bachmannlinkissue21343 messages
2014-05-25 15:21:42Matt.Bachmanncreate