def handle(self):
		while self.socket:
			try:
				buffer = self.socket.recv(1024)
				if buffer in "":
					self.log.error("Disconnected from IRC")
					self.socket = False
					self.ready = False
					break
			except socket.timeout:
				if self.timeout:
					self.socket = False
					break
				else:
					self.send("PING :%s" % self.randomString())
					self.timeout = True
				buffer = ""
			except:
				buffer = ""
			for line in buffer.split("\n"):
				self.line = line
				self.parse()
dataset/ETHPy150Open benbaptist/minecraft-wrapper/src/irc.py/IRC.handle/operator `==` -> `in`