mirror of
https://github.com/corpnewt/ProperTree.git
synced 2026-08-12 22:31:30 +04:00
Flush stdin after writing
This commit is contained in:
@@ -604,6 +604,7 @@ class ProperTree:
|
||||
continue
|
||||
# Dirty py2 check to see if we need to encode the data or not
|
||||
clipboard.stdin.write(clipboard_string if 2/3==0 else clipboard_string.encode())
|
||||
clipboard.stdin.flush() # Flush the buffer
|
||||
clipboard.stdin.close() # Close the pipe
|
||||
break # Break out of the loop as needed
|
||||
|
||||
|
||||
Reference in New Issue
Block a user