code: def old_path(self, full_path):
          
          if self.matches(full_path):
              return full_path[:-len(self.extension)]
          else:
              raise MagicError("Path does not match this magic.")
docs: Remove self.extension from path or raise MagicError.