00001 #!/usr/bin/env python 00002 # -*- coding: utf-8 -*- 00003 00004 00005 def unresolve_name(node_name, name): 00006 suffix = node_name + '/' 00007 if name.startswith(suffix): 00008 return '~{0}'.format(name[len(suffix):]) 00009 return name