Fix setns.py syntax for 3.x

pull/295/head
David Wilson 6 years ago
parent 90f2f823db
commit 24ecfb3b13

@ -151,7 +151,8 @@ class Stream(mitogen.parent.Stream):
os.readlink(nspath + name) != os.readlink(selfpath + name)
)
]
except Exception, e:
except Exception:
e = sys.exc_info()[1]
raise Error(str(e))
os.chdir('/proc/%s/root' % (self.leader_pid,))

Loading…
Cancel
Save