def __init__(self, reader='KeysReader', defaultArg='*', desc=None): self.realReader = reader if(reader == 'ShardsIDReader'): reader = 'PythonReader' self.reader = reader self.gearsCtx = gearsCtx(self.reader, desc) self.defaultArg = defaultArg
def __init__(self, reader='KeysReader', defaultArg='*'): self.realReader = reader if (reader == 'KeysOnlyReader' or reader == 'ShardsIDReader'): reader = 'PythonReader' self.reader = reader self.gearsCtx = gearsCtx(self.reader) self.defaultArg = defaultArg