@Trace
  def get_code(self, fullname):
    full_path, search_path, submodule = self.GetModuleInfo(fullname)
    if full_path is None:
      return None
    source_file = open(full_path)
    try:
      source_code = source_file.read()
    finally:
      source_file.close()




    source_code = source_code.replace('\r\n', '\n')
    if not source_code.endswith('\n'):
      source_code += '\n'




    encoding = DEFAULT_ENCODING
    for line in source_code.split('\n', 2)[:2]:
      matches = CODING_COOKIE_RE.findall(line)
      if matches:
        encoding = matches[0].lower()


    source_code.decode(encoding)

    return compile(source_code, full_path, 'exec')
Override to register a custom login handler
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/tools/dev_appserver_import_hook.py/HardenedModulesHook.get_code--crossover with--dataset/ETHPy150Open jupyterhub/jupyterhub/jupyterhub/auth.py/Authenticator.login_url