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