@property<EOL><INDENT>def base_url(self):<DEDENT>
if self.location in self.known_locations:<EOL><INDENT>return self.known_locations[self.location]<EOL><DEDENT>elif '<STR_LIT:.>' in self.location or self.location == '<STR_LIT:localhost>':<EOL><INDENT>return '<STR_LIT>' + self.location<EOL><DEDENT>else:<EOL><INDENT>return '<STR_LIT>' + self.location + API_HOST_SUFFIX<EOL><DEDENT>
Protocol + hostname