Remove asquote function for it being used nowhere
This commit is contained in:
parent
4408358151
commit
f26eb24e10
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue