Skip to content

Commit 69804f7

Browse files
committed
SedRegex: Fix Windows support
1 parent 5a92109 commit 69804f7

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/commands.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,9 @@ def process(f, *args, **kwargs):
149149
'(See https://github.com/travis-ci/travis-core/issues/187\n'
150150
'for more information about this bug.)\n')
151151
raise
152-
if isinstance(world.SUPYPROCESS_MULTIPROCESSING_CONTEXT,
153-
multiprocessing.context.ForkContext):
152+
if hasattr(multiprocessing.context, "ForkContext") and \
153+
isinstance(world.SUPYPROCESS_MULTIPROCESSING_CONTEXT,
154+
multiprocessing.context.ForkContext):
154155
# no need to pickle f
155156
targetArgs = (f, q, heap_size) + args
156157
kwargs.pop('preload_plugins', None)

0 commit comments

Comments
 (0)