Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- было:
- urlparse.urlparse(url).path
- стало:
- tuple_path = filter(None, urlparse.urlparse(url).path.split('/'))
- path = '/'.join(map(str, tuple_path))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement