mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Add cachedout's changes
This commit is contained in:
parent
97f3c1fa71
commit
3c92e3ecf8
@ -9,7 +9,6 @@ import contextlib
|
||||
import logging
|
||||
import os
|
||||
import shutil
|
||||
import string
|
||||
import ftplib
|
||||
from tornado.httputil import parse_response_start_line, HTTPInputError
|
||||
|
||||
@ -466,8 +465,8 @@ class Client(object):
|
||||
url_path = os.path.join(
|
||||
url_data.netloc, url_data.path).rstrip(os.sep)
|
||||
|
||||
if url_scheme is not '' and url_scheme in string.letters:
|
||||
url_path = '{0}:{1}'.format(url_scheme, url_path)
|
||||
if url_scheme.lower() in 'abcdefghijklmnopqrstuvwxyz':
|
||||
url_path = ':'.join([url_scheme, url_path])
|
||||
url_scheme = 'file'
|
||||
|
||||
if url_scheme in ('file', ''):
|
||||
|
Loading…
Reference in New Issue
Block a user