From 46b15a1f117cc16a5bba4776f07a9f3560baa44b Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 13 Oct 2014 15:09:23 +0200 Subject: [PATCH] userscripts: Remove invalid encoding param to os.open. Fixes #182. This was a regression introduced in 17dd4732ae4807d73ce6f780fbafb5c46cf0999d. --- qutebrowser/commands/userscripts.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qutebrowser/commands/userscripts.py b/qutebrowser/commands/userscripts.py index 5752f5efe..e8d150893 100644 --- a/qutebrowser/commands/userscripts.py +++ b/qutebrowser/commands/userscripts.py @@ -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")