Commit b231c15e authored by Florian Margaine's avatar Florian Margaine Committed by Jason Madden

FileObjectClosed is an exception object (#969)

So, raise it directly, instead of trying to use it as a callable.
parent 3a3124e7
...@@ -175,7 +175,7 @@ class FileObjectThread(FileObjectBase): ...@@ -175,7 +175,7 @@ class FileObjectThread(FileObjectBase):
# This is different than FileObjectPosix, etc, # This is different than FileObjectPosix, etc,
# because we want to save the expensive trip through # because we want to save the expensive trip through
# the threadpool. # the threadpool.
raise FileObjectClosed() raise FileObjectClosed
with lock: with lock:
return threadpool.apply(method, args, kwargs) return threadpool.apply(method, args, kwargs)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment