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

@@ -476,20 +476,16 @@
  return 
-set(
 self.cli
@@ -516,17 +516,16 @@
 e, True)
-)
 %0A       
@@ -554,12 +554,8 @@
 urn 
-set(
 %5Bver
@@ -559,17 +559,16 @@
 version%5D
-)
 %0A%0A%0Aclass

Switch from returning a set to returning a list