Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
3.8 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
spyoungtech committed Jul 19, 2022
1 parent 57a54bd commit 37882ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions ahk/_async/transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ async def adrain_stdin(self) -> None: # unasync: remove

def drain_stdin(self) -> None:
assert isinstance(self._proc, subprocess.Popen)
assert self._proc.stdin is not None
self._proc.stdin.flush()
return None

Expand Down
1 change: 1 addition & 0 deletions ahk/_sync/transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ def start(self) -> None:

def drain_stdin(self) -> None:
assert isinstance(self._proc, subprocess.Popen)
assert self._proc.stdin is not None
self._proc.stdin.flush()
return None

Expand Down

0 comments on commit 37882ce

Please sign in to comment.