Add YAPF style + ignore, and format tracked Python files
This commit is contained in:
@@ -131,11 +131,16 @@ class AccessModal(ModalScreen):
|
||||
|
||||
if sys.platform == "win32":
|
||||
# Windows: use clipboard via pyperclip (already tried)
|
||||
logger.debug("Windows clipboard not available without pyperclip")
|
||||
logger.debug(
|
||||
"Windows clipboard not available without pyperclip"
|
||||
)
|
||||
else:
|
||||
# Linux/Mac
|
||||
process = subprocess.Popen(
|
||||
["xclip", "-selection", "clipboard"], stdin=subprocess.PIPE
|
||||
["xclip",
|
||||
"-selection",
|
||||
"clipboard"],
|
||||
stdin=subprocess.PIPE
|
||||
)
|
||||
process.communicate(self.item_content.encode("utf-8"))
|
||||
logger.info("URL copied to clipboard via xclip")
|
||||
|
||||
Reference in New Issue
Block a user