def _connectToWP(self):
if self.connected_to_wp:<EOL><INDENT>logger.debug("<STR_LIT>")<EOL>return True<EOL><DEDENT>info=json.load(open(WP_LOGIN_FILE,'<STR_LIT:r>'))<EOL>self.wp = Client(info['<STR_LIT:url>'],info['<STR_LIT:username>'],info['<STR_LIT:password>'])<EOL>logger.debug("<STR_LIT>")<EOL>self.connected_to_wp=True<EOL>return True<EOL>
Establish the actual TCP connection to Flickr