userscripts: Remove invalid encoding param to os.open.

Fixes #182.

This was a regression introduced in 17dd4732ae.
This commit is contained in:
Florian Bruhin 2014-10-13 15:09:23 +02:00
parent 47ae112cb7
commit 46b15a1f11

View File

@ -66,8 +66,7 @@ class _BlockingFIFOReader(QObject):
# We also use os.open and os.fdopen rather than built-in open so we can
# add O_NONBLOCK.
fd = os.open(self._filepath, os.O_RDWR |
os.O_NONBLOCK, # pylint: disable=no-member
encoding='utf-8')
os.O_NONBLOCK) # pylint: disable=no-member
self.fifo = os.fdopen(fd, 'r')
while True:
log.procs.debug("thread loop")