Skip to content

Commit 7f4660f

Browse files
committed
PY2: String inputs to type()
1 parent cc66352 commit 7f4660f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/pipeline/plugins/legacymultiproc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class NonDaemonPool(pool.Pool):
9292
def Process(self, *args, **kwds):
9393
proc = super(NonDaemonPool, self).Process(*args, **kwds)
9494
# Monkey-patch newly created processes to ensure they are never daemonized
95-
proc.__class__ = type('NonDaemonProcess', (NonDaemonMixin, proc.__class__), {})
95+
proc.__class__ = type(str('NonDaemonProcess'), (NonDaemonMixin, proc.__class__), {})
9696
return proc
9797

9898

0 commit comments

Comments
 (0)