def normalize_target(cls, target): if cls.poc_info['protocol']['name'] == 'http': return http.normalize_url(target) elif cls.poc_info['protocol']['name'] == 'https': return http.normalize_url(target, https=True) else: return target
def __normalize_target(self, target): if self.poc_info['protocol']['name'] == 'http': return http.normalize_url(target) elif self.poc_info['protocol']['name'] == 'https': return http.normalize_url(target, https=True) else: return target