MCPcopy Create free account
hub / github.com/ipython/ipython / win_paste

Function win_paste

IPython/terminal/shortcuts.py:266–276  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

264
265 @undoc
266 def win_paste(event):
267 try:
268 text = win32_clipboard_get()
269 except TryNext:
270 try:
271 text = tkinter_clipboard_get()
272 except (TryNext, ClipboardEmpty):
273 return
274 except ClipboardEmpty:
275 return
276 event.current_buffer.insert_text(text.replace('\t', ' ' * 4))

Callers

nothing calls this directly

Calls 2

win32_clipboard_getFunction · 0.90
tkinter_clipboard_getFunction · 0.90

Tested by

no test coverage detected