old_contents: from __future__ import absolute_import
  from __future__ import division
  
  
  from xmlrpc2 import client as xmlrpc2
  
  
  class BaseProcessor(object):
  
      def __init__(self, index, *args, **kwargs):
          super(BaseProcessor, self).__init__(*args, **kwargs)
  
          self.index = index
          self.client = xmlrpc2.Client(self.index)
  
      def process(self):
          raise NotImplementedError
  
  
  class BulkProcessor(BaseProcessor):
  
      def process(self):
          pass
  
new_contents: from __future__ import absolute_import
  from __future__ import division
  
  
  from xmlrpc2 import client as xmlrpc2
  
  
  class BaseProcessor(object):
  
      def __init__(self, index, *args, **kwargs):
          super(BaseProcessor, self).__init__(*args, **kwargs)
  
          self.index = index
          self.client = xmlrpc2.Client(self.index)
  
      def process(self):
          raise NotImplementedError
  
      def get_releases(self, name, version=None):
          if version is None:
              return set(self.client.package_releases(name, True))
          else:
              return set([version])
  
  
  class BulkProcessor(BaseProcessor):
  
      def process(self):
          pass
  
subject: Add a method for getting a list of releases to fetch