Skip to content

Commit

Permalink
Remove nonexistent win64 platform
Browse files Browse the repository at this point in the history
  • Loading branch information
C0rn3j committed Dec 28, 2024
1 parent 72a7bbd commit face591
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pypresence/baseclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ async def handshake(self):
try:
if sys.platform == 'linux' or sys.platform == 'darwin':
self.sock_reader, self.sock_writer = await asyncio.wait_for(asyncio.open_unix_connection(ipc_path), self.connection_timeout)
elif sys.platform == 'win32' or sys.platform == 'win64':
elif sys.platform == 'win32':
self.sock_reader = asyncio.StreamReader(loop=self.loop)
reader_protocol = asyncio.StreamReaderProtocol(self.sock_reader, loop=self.loop)
self.sock_writer, _ = await asyncio.wait_for(self.loop.create_pipe_connection(lambda: reader_protocol, ipc_path), self.connection_timeout)
Expand Down
4 changes: 2 additions & 2 deletions pypresence/presence.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def connect(self):
def close(self):
self.send_data(2, {'v': 1, 'client_id': self.client_id})
self.loop.close()
if sys.platform == 'win32' or sys.platform == 'win64':
if sys.platform == 'win32':
self.sock_writer._call_connection_lost(None)


Expand Down Expand Up @@ -86,5 +86,5 @@ async def connect(self):
def close(self):
self.send_data(2, {'v': 1, 'client_id': self.client_id})
self.loop.close()
if sys.platform == 'win32' or sys.platform == 'win64':
if sys.platform == 'win32':
self.sock_writer._call_connection_lost(None)
2 changes: 1 addition & 1 deletion pypresence/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def remove_none(d: dict):

def test_ipc_path(path) -> bool:
'''Tests an IPC pipe to ensure that it actually works'''
if sys.platform == 'win32' or sys.platform == 'win64':
if sys.platform == 'win32':
with open(path):
return True
else:
Expand Down

0 comments on commit face591

Please sign in to comment.