mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-24 09:20:53 +07:00
Fix exception in console with python 3 (PY-18189)
This commit is contained in:
@@ -201,7 +201,7 @@ def process_exec_queue(interpreter):
|
||||
except _queue.Empty:
|
||||
continue
|
||||
|
||||
if callable(code_fragment):
|
||||
if hasattr(code_fragment, '__call__'):
|
||||
# It can be a callable (i.e.: something that must run in the main
|
||||
# thread can be put in the queue for later execution).
|
||||
code_fragment()
|
||||
|
||||
Reference in New Issue
Block a user