Open GoogleCodeExporter opened 9 years ago
I don't see how u'/'.join(any_list) will add a trailing '/' to the end of the
string. It's not what join does per se. Unless there's a '' (empty string)
element at the end of the request_path list.
Anyways, the lines before the join:
if self.path.endswith('/'):
request_path.append(self.path[:-1])
else:
request_path.append(self.path)
if path.startswith('/'):
request_path.append(path[1:])
else:
request_path.append(path)
Could be changed for:
request_path.append(path.strip('/'))
That removes leading and trailing '/'s.
Original comment by dr.chamb...@gmail.com
on 11 Oct 2010 at 6:11
Original issue reported on code.google.com by
phamduc...@gmail.com
on 5 Mar 2010 at 2:58