Remove asquote function for it being used nowhere

This commit is contained in:
ZyX 2014-02-03 21:21:22 +04:00
parent 4408358151
commit f26eb24e10
2 changed files with 1 additions and 8 deletions

View File

@ -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)

View File

@ -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