From f26eb24e105c6cf31854091c3898a7e662be21e2 Mon Sep 17 00:00:00 2001 From: ZyX Date: Mon, 3 Feb 2014 21:21:22 +0400 Subject: [PATCH] Remove asquote function for it being used nowhere --- powerline/lib/shell.py | 7 ------- powerline/segments/common.py | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/powerline/lib/shell.py b/powerline/lib/shell.py index 608f3c31..ef6cec41 100644 --- a/powerline/lib/shell.py +++ b/powerline/lib/shell.py @@ -17,10 +17,3 @@ def run_cmd(pl, cmd, stdin=None): def asrun(pl, ascript): '''Run the given AppleScript and return the standard output and error.''' return run_cmd(pl, ['osascript', '-'], ascript) - - -def asquote(astr): - '''Return the AppleScript equivalent of the given string.''' - - astr = astr.replace('"', '" & quote & "') - return '"{}"'.format(astr) diff --git a/powerline/segments/common.py b/powerline/segments/common.py index 0fdd1f37..c47d04d9 100644 --- a/powerline/segments/common.py +++ b/powerline/segments/common.py @@ -10,7 +10,7 @@ import socket from multiprocessing import cpu_count as _cpu_count from powerline.lib import add_divider_highlight_group -from powerline.lib.shell import asrun, asquote, run_cmd +from powerline.lib.shell import asrun, run_cmd from powerline.lib.url import urllib_read, urllib_urlencode from powerline.lib.vcs import guess, tree_status from powerline.lib.threaded import ThreadedSegment, KwThreadedSegment, with_docstring