@staticmethod
    def print_sparql_results(res):
        for idx, row in enumerate(res.bindings):
            rowfmt = []
            print "Item %d" % idx
            for key, val in sorted(row.items()):
                rowfmt.append((key, val.decode()) % '%s-->%s')
            print '\n'.join(rowfmt)
dataset/ETHPy150Open NeuroVault/NeuroVault/neurovault/apps/statmaps/nidm_results.py/NIDMUpload.print_sparql_results/swapped operands of `%`