Re: Re: Incompatibility bug for 1.1
will guaraldi <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
On Fri, 1 Apr 2005, Matej Cepl wrote: > > You are correct, of course. Then we have to do it ourselves, but in more > compatible way (this is from posixpath.py): > > def join(a, *p): > """Join two or more pathname components, inserting '/' as needed""" > path = a > for b in p: > if b[:1] == '/': > path = b > elif path == '' or path[-1:] == '/': > path = path + b > else: > path = path + '/' + b > return path I think this is overkill for that one line since we're just joining a path to a filename. Theoretically, the absolute_path should look the same every time it comes into that section. If the absolute_path doesn't look the same, then I think we have a different issue we need to solve elsewhere. We're looking into it. /will ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click