code: def apply_deprecations(cls, path):
          "Convert any potentially deprecated paths and issue appropriate warnings"
          split = path.split('.')
          msg = 'Element {old} deprecated. Use {new} instead.'
          for old, new in cls.deprecations:
              if split[0] == old:
                  parsewarning.warning(msg.format(old=old, new=new))
                  return '.'.join([new] + split[1:])
          return patf apply_deprecations(cls, path):
          "Convert any potentially deprecated paths and issue appropriate warnings"
          split = path.split('.')
          msg = 'Element {old} deprecated. Use {new} instead.'
          for old, new in cls.deprecations:
              if split[0] == old:
                  parsewarning.warning(msg.format(old=old, new=new))
                  return '.'.join([new] + split[1:])
          return path
docs: Convert any potentially deprecated paths and issue appropriate warnings