Remove zerver/lib/parallel.py from mypy's exclude_py3.

This commit is contained in:
Eklavya Sharma 2016-07-03 18:49:32 +05:30 committed by Tim Abbott
parent 5e8dba4c75
commit 4e698ab1f6
2 changed files with 1 additions and 2 deletions

View File

@ -49,7 +49,6 @@ zerver/lib/ccache.py
zerver/lib/debug.py
zerver/lib/email_mirror.py
zerver/lib/notifications.py
zerver/lib/parallel.py
zerver/lib/tornado_ioloop_logging.py
zerver/management/commands/create_stream.py
zerver/management/commands/email-mirror.py

View File

@ -28,7 +28,7 @@ def run_parallel(job, data, threads=6):
except OSError as e:
if e.errno != errno.EBADF:
raise
sys.stdin = open("/dev/null", "r")
sys.stdin = open("/dev/null", "r") # type: ignore # py2 and py3 stubs are not compatible
os._exit(job(item))
pids[pid] = item