def _connectToFlickr(self):
if self.connected_to_flickr:<EOL><INDENT>logger.debug("<STR_LIT>")<EOL>return True<EOL><DEDENT>logger.debug("<STR_LIT>")<EOL>_flickr = flickrapi.FlickrAPI(api_key, api_secret,format='<STR_LIT>')<EOL>try:<EOL><INDENT>(token, frob) = _flickr.get_token_part_one(perms='<STR_LIT>')<EOL><DEDENT>except:<EOL><INDENT>print("<STR_LIT>")<EOL>return False<EOL><DEDENT>if not token: input("<STR_LIT>")<EOL>_flickr.get_token_part_two((token, frob))<EOL>self.flickr=_flickr;<EOL>self.connected_to_flickr=True<EOL>return True<EOL>
Establish the actual TCP connection to Flickr