def _managers_changed(self, name, old, new):
for key in new:<EOL><INDENT>if '<STR_LIT:/>' in key:<EOL><INDENT>raise ValueError(<EOL>"<STR_LIT>" % key<EOL>)<EOL><DEDENT>self.managers = {k.strip('<STR_LIT:/>'): v for k, v in new.items()}<EOL><DEDENT>
Strip slashes from directories before updating.