Skip to content

Commit

Permalink
more test
Browse files Browse the repository at this point in the history
  • Loading branch information
Amund211 committed May 21, 2023
1 parent 70ebb79 commit d918bea
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/prism/discordrp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,7 @@ def _get_pipe(self) -> str:
return os.path.join("/tmp/", SOCKET_NAME)

def _try_socket(self, pipe: str, i: int) -> None:
from typing import Final

WINDOWS: Final = "win32"
if sys.platform == WINDOWS:
if sys.platform == "win32":
self._socket = open(pipe.format(i), "rb+")
else:
self._socket = socket.socket(socket.AF_UNIX)
Expand Down

0 comments on commit d918bea

Please sign in to comment.