RDFLib/rdflib-sparql — pull request #2 by uholzer (2012-12-26 20:10:47+00:00)
Title: Wrong number of arguments for MethodType

The classes Expr and Comp from parserutils use MethodType from the
module types of the Python standard library in order to bind a
function to an instance. They give it three arguments: The function to
be bound, the instance (self), and their parent class. This doesn't
to work in Python 3: MethodType only accepts two arguments. I just
removed the third one, which seems to work in Python 2.7 too.

MethodType(evalfn, self, CompValue)

reads now

MethodType(evalfn, self)