Fix setns.py syntax for 3.x

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

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

Loading…
Cancel
Save