Skip to content

Switch from multiprocessing to multiprocess since it can serialise more stuff #45

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mw/xml_dump/map.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import logging
from multiprocessing import Queue, Value, cpu_count
from multiprocess import Queue, Value, cpu_count
from queue import Empty

from .functions import file
Expand Down
2 changes: 1 addition & 1 deletion mw/xml_dump/processor.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import logging
import traceback
from collections import namedtuple
from multiprocessing import Process
from multiprocess import Process
from queue import Empty

from .functions import open_file
Expand Down
2 changes: 1 addition & 1 deletion mw/xml_dump/tests/test_processor.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import io
from multiprocessing import Queue
from multiprocess import Queue

from nose.tools import eq_, raises

Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
long_description=open('README.rst').read(),
install_requires=[
"requests>=2.4",
"pymysql>=0.6.2"],
"pymysql>=0.6.2",
"multiprocess>=0.70.5"],
test_suite='nose.collector',
classifiers=[
"Programming Language :: Python",
Expand Down