userscripts: Remove invalid encoding param to os.open.
Fixes #182.
This was a regression introduced in 17dd4732ae
.
This commit is contained in:
parent
47ae112cb7
commit
46b15a1f11
@ -66,8 +66,7 @@ class _BlockingFIFOReader(QObject):
|
|||||||
# We also use os.open and os.fdopen rather than built-in open so we can
|
# We also use os.open and os.fdopen rather than built-in open so we can
|
||||||
# add O_NONBLOCK.
|
# add O_NONBLOCK.
|
||||||
fd = os.open(self._filepath, os.O_RDWR |
|
fd = os.open(self._filepath, os.O_RDWR |
|
||||||
os.O_NONBLOCK, # pylint: disable=no-member
|
os.O_NONBLOCK) # pylint: disable=no-member
|
||||||
encoding='utf-8')
|
|
||||||
self.fifo = os.fdopen(fd, 'r')
|
self.fifo = os.fdopen(fd, 'r')
|
||||||
while True:
|
while True:
|
||||||
log.procs.debug("thread loop")
|
log.procs.debug("thread loop")
|
||||||
|
Loading…
Reference in New Issue
Block a user