def init_readline_vars():
 try:
  import ctypes
 except ImportError:
  return
 lib_name = find_readline_lib()
 if (lib_name is not None):
  lib = ctypes.cdll.LoadLibrary(lib_name)
  global rl_completion_suppress_append
  rl_completion_suppress_append = ctypes.c_int.in_dll(lib, 'rl_completion_suppress_append')

def init_readline_vars ( ) : try : import ctypes except ImportError : return lib_name = find_readline_lib ( ) if ( lib_name is not None ) : lib = ctypes . cdll . LoadLibrary ( lib_name ) global rl_completion_suppress_append rl_completion_suppress_append = ctypes . c_int . in_dll ( lib , 'rl_completion_suppress_append' )
work around trailing space automatically inserted by readline .