(self, path, encoding='utf-8')
return URL.parse(newurl, 'utf-8')
Evaluate the new path relative to the current url
Evaluate the new path relative to the current url
Evaluate the new path relative to the current url
def relative(self, path, encoding='utf-8'):
        '''Evaluate the new path relative to the current url'''
        if isinstance(path, text_type):
            newurl = urljoin(self.utf8(), path.encode('utf-8'))
        else:
            newurl = urljoin(
                self.utf8(), path.decode(encoding).encode('utf-8')
            )
        return URL.parse(newurl, 'utf-8')
def relative ( self , path , encoding = 'utf-8' ) : if isinstance ( path , text_type ) : newurl = urljoin ( self . utf8 ( ) , path . encode ( 'utf-8' ) ) else : newurl = urljoin ( self . utf8 ( ) , path . decode ( encoding ) . encode ( 'utf-8' ) ) return URL . parse ( newurl , 'utf-8' )