Skip to content

Commit

Permalink
Remove unnecessary decode('ascii')
Browse files Browse the repository at this point in the history
  • Loading branch information
Flowdalic committed Aug 13, 2022
1 parent 09fcfcd commit 411e569
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wol.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def handle(self):
logging.debug('Connected {}'.format(client))
try:
while self.rfile:
hostname = self.rfile.readline().decode('ascii').strip()
hostname = self.rfile.readline().strip()
if hostname:
logging.info('Request WoL at "{}" from {}'.format(hostname, client))
self.wfile.write(b"success\n" if wake(hostname) else b"failed\n")
Expand Down

0 comments on commit 411e569

Please sign in to comment.