def load_module(self, fullname):
mod = super(JsonLoader, self).load_module(fullname)<EOL>try:<EOL><INDENT>with codecs.open(self.cfg_file, '<STR_LIT:r>', '<STR_LIT:utf-8>') as f:<EOL><INDENT>mod.__dict__.update(json.load(f))<EOL><DEDENT><DEDENT>except ValueError:<EOL><INDENT>self.e = "<STR_LIT>"<EOL>self.err_msg = sys.exc_info()[<NUM_LIT:1>]<EOL><DEDENT>if self.e == "<STR_LIT>":<EOL><INDENT>err_msg = "<STR_LIT>"<EOL>err_msg += self.cfg_file + '<STR_LIT:\n>'<EOL>err_msg += str(self.err_msg)<EOL>raise InvalidJsonError(err_msg)<EOL><DEDENT>return mod<EOL>
load_module is always called with the same argument as finder's
find_module, see "How Import Works"