f09b888a8a18352dfee1373f108b0f6eec1b61ac,homeassistant/components/media_player/denon.py,DenonDevice,telnet_request,#Any#Any#Any#,62
Before Change
def telnet_request(cls, telnet, command):
Execute `command` and return the response.
telnet.write(command.encode("ASCII") + b"\r")
return telnet.read_until(b"\r", timeout=0.2).decode("ASCII").strip()
def telnet_command(self, command):
Establish a telnet connection and sends `command`.
After Change
def telnet_request(cls, telnet, command):
Execute `command` and return the response.
telnet.write(command.encode("ASCII") + b"\r")
lines = []
while True:
line = telnet.read_until(b"\r", timeout=0.2)
if not line:
break
lines.append(line.decode("ASCII").strip())
return lines[0]
def telnet_command(self, command):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: home-assistant/home-assistant
Commit Name: f09b888a8a18352dfee1373f108b0f6eec1b61ac
Time: 2016-12-01
Author: bweeks@google.com
File Name: homeassistant/components/media_player/denon.py
Class Name: DenonDevice
Method Name: telnet_request
Project Name: chakki-works/doccano
Commit Name: 49d41416e440926f0a9a8243b4d77f6f5468efe9
Time: 2019-03-12
Author: light.tree.1.13@gmail.com
File Name: app/server/utils.py
Class Name: CoNLLHandler
Method Name: parse
Project Name: gooofy/zamia-speech
Commit Name: ea560b70538c7d47f00b0296488607ddb3a3c3d9
Time: 2017-10-05
Author: guenter@zamia.org
File Name: speech_editor.py
Class Name:
Method Name: