def getreader(encoding):
 return lookup(encoding).streamreader

def getreader ( encoding ) : return lookup ( encoding ) . streamreader
lookup up the codec for the given encoding and return its streamreader class or factory function .