def get_url(self):
url = self.pattern_url.format(code=self.code, protocol=self.protocol)<EOL>url += '<STR_LIT:?>' + self.query.urlencode() if self.query else '<STR_LIT>'<EOL>return mark_safe(url)<EOL>
Returns URL folded from :py:data:`pattern_url` and parsed code.