yarl.URL.scheme is not writable

pull/1446/head
Nicolas Werner 2 years ago
parent b757140bec
commit a6c41119ac
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
  1. 4
      scripts/flat-manager-client

@ -570,9 +570,7 @@ def should_skip_delta(id, globs):
def keep_host(location, original): def keep_host(location, original):
loc_url = URL(location) loc_url = URL(location)
org_url = URL(original) org_url = URL(original)
loc_url.scheme = org_url.scheme return str(loc_url.with_scheme(org_url.scheme).with_host(org_url.host).with_port(org_url.port))
loc_url.authority = org_url.authority
return str(loc_url)
def build_url_to_api(build_url): def build_url_to_api(build_url):
parts = urlparse(build_url) parts = urlparse(build_url)

Loading…
Cancel
Save