def __repr__(self):
        return "<Requirement(package={package}, version='{version}')>".format(
            package=self.package, version=self.version)
def clear(self):
    for unused_ in range(len(self._items)):
      self.remove_item(self._items[0])