fix typo
This commit is contained in:
parent
97a5596639
commit
964445ca77
|
@ -156,7 +156,7 @@ class PipeListener(ExceptionThread):
|
||||||
if not os.path.exists(self._path):
|
if not os.path.exists(self._path):
|
||||||
os.mkfifo(self._path, mode=pipeMode)
|
os.mkfifo(self._path, mode=pipeMode)
|
||||||
else:
|
else:
|
||||||
st_mode = os.state(self._path).st_mode
|
st_mode = os.stat(self._path).st_mode
|
||||||
if not stat.S_ISFIFO(st_mode):
|
if not stat.S_ISFIFO(st_mode):
|
||||||
os.remove(self._path)
|
os.remove(self._path)
|
||||||
os.mkfifo(self._path, mode=pipeMode)
|
os.mkfifo(self._path, mode=pipeMode)
|
||||||
|
|
Loading…
Reference in New Issue