Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions mactesting.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@ def iCatilina():
}
def laporp():
global devicetype
if product[0:7] == "MacBook":
devicetype = "laptop"
else:
devicetype = "desktop"
devicetype = "laptop" if product[0:7] == "MacBook" else "desktop"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function laporp refactored with the following changes:

def findver():
global bigicon
try:
Expand Down
7 changes: 3 additions & 4 deletions rpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,9 @@ def _do_handshake(self):
# {'cmd': 'DISPATCH', 'data': {'v': 1, 'config': {...}}, 'evt': 'READY', 'nonce': None}
if ret_op == OP_FRAME and ret_data['cmd'] == 'DISPATCH' and ret_data['evt'] == 'READY':
return
else:
if ret_op == OP_CLOSE:
self.close()
raise RuntimeError(ret_data)
if ret_op == OP_CLOSE:
self.close()
raise RuntimeError(ret_data)
Comment on lines -63 to +65
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function DiscordIpcClient._do_handshake refactored with the following changes:


@abstractmethod
def _write(self, date: bytes):
Expand Down