Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 22, 2024
1 parent 489ba6b commit 09ac6a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 5 additions & 3 deletions multtest.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import multiprocessing


def worker(a):
print(a)

if __name__ == '__main__':

if __name__ == "__main__":
a = []
multiprocessing.set_start_method('spawn')
p = multiprocessing.Process(target=worker, args=('hello',))
multiprocessing.set_start_method("spawn")
p = multiprocessing.Process(target=worker, args=("hello",))
p.start()
a.append(p)
p.join()
3 changes: 1 addition & 2 deletions robyn/processpool.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ def init_processpool(
response_headers: Headers,
) -> List[Process]:
process_pool = []
ctx = mp.get_context('fork')

ctx = mp.get_context("fork")

if sys.platform.startswith("win32"):
spawn_process(
Expand Down

0 comments on commit 09ac6a3

Please sign in to comment.