def getReferences(pl): x = wikipedia.getReferences(pl) # Remove ignorables if ignore.has_key(pl.code()): ig=ignore[pl.code()] for i in range(len(x)-1, -1, -1): if x[i] in ig: del x[i] return x
def getReferences(pl): x = wikipedia.getReferences(pl) return x