]> git.0d.be Git - botaradio.git/commitdiff
Fix ffmpeg pipe on Windows
authorLartza <Lartza@users.noreply.github.com>
Tue, 10 Mar 2020 14:06:56 +0000 (16:06 +0200)
committerLartza <Lartza@users.noreply.github.com>
Tue, 10 Mar 2020 14:06:56 +0000 (16:06 +0200)
util.py

diff --git a/util.py b/util.py
index 873813180fb4fd6f50ad2f6365aff9d599b87c6b..447b5c658bdb9f964fb3faaa148e5681159a62da 100644 (file)
--- a/util.py
+++ b/util.py
@@ -190,8 +190,8 @@ def pipe_no_wait(pipefd):
         import msvcrt
         import os
 
-        from ctypes import windll, byref, wintypes, GetLastError, WinError
-        from ctypes.wintypes import HANDLE, DWORD, POINTER, BOOL
+        from ctypes import windll, byref, wintypes, WinError, POINTER
+        from ctypes.wintypes import HANDLE, DWORD, BOOL
 
         LPDWORD = POINTER(DWORD)
         PIPE_NOWAIT = wintypes.DWORD(0x00000001)