mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
clean out redundant backslashes
This commit is contained in:
parent
b345d2e255
commit
f9970c3e9e
@ -246,8 +246,8 @@ def bootstrap_psexec(hosts='', master=None, version=None, arch='win32',
|
||||
base_url = 'http://saltstack.com/downloads/'
|
||||
source = urllib.urlopen(base_url).read()
|
||||
salty_rx = re.compile('>(Salt-Minion-(.+?)-(.+)-Setup.exe)</a></td><td align="right">(.*?)\\s*<')
|
||||
source_list = sorted([[path, ver, plat, time.strptime(date, "%d-%b-%Y %H:%M")] \
|
||||
for path, ver, plat, date in salty_rx.findall(source)], \
|
||||
source_list = sorted([[path, ver, plat, time.strptime(date, "%d-%b-%Y %H:%M")]
|
||||
for path, ver, plat, date in salty_rx.findall(source)],
|
||||
key=operator.itemgetter(3), reverse=True)
|
||||
if version:
|
||||
source_list = [s for s in source_list if s[1] == version]
|
||||
|
Loading…
Reference in New Issue
Block a user