From 4b433644ca5f6ade2e752b766298d9b39786ce91 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 24 Feb 2022 13:10:34 +0000 Subject: [PATCH] Default version number for session functions --- session.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/session.py b/session.py index e3c11ce65..82b06031d 100644 --- a/session.py +++ b/session.py @@ -213,7 +213,7 @@ def _get_json_signed(session, url: str, domain_full: str, session_headers: {}, def get_json(signing_priv_key_pem: str, session, url: str, headers: {}, params: {}, debug: bool, - version: str = '1.3.0', http_prefix: str = 'https', + version: str = __version__, http_prefix: str = 'https', domain: str = 'testdomain', timeout_sec: int = 20, quiet: bool = False) -> {}: if not isinstance(url, str): @@ -251,7 +251,7 @@ def get_json(signing_priv_key_pem: str, def get_vcard(xml_format: bool, session, url: str, params: {}, debug: bool, - version: str = '1.3.0', http_prefix: str = 'https', + version: str = __version__, http_prefix: str = 'https', domain: str = 'testdomain', timeout_sec: int = 20, quiet: bool = False) -> {}: if not isinstance(url, str): @@ -329,7 +329,7 @@ def get_vcard(xml_format: bool, def download_html(signing_priv_key_pem: str, session, url: str, headers: {}, params: {}, debug: bool, - version: str = '1.3.0', http_prefix: str = 'https', + version: str = __version__, http_prefix: str = 'https', domain: str = 'testdomain', timeout_sec: int = 20, quiet: bool = False) -> {}: if not isinstance(url, str): @@ -674,7 +674,7 @@ def download_image_any_mime_type(session, url: str, def get_method(method_name: str, xml_str: str, session, url: str, params: {}, headers: {}, debug: bool, - version: str = '1.3.0', http_prefix: str = 'https', + version: str = __version__, http_prefix: str = 'https', domain: str = 'testdomain', timeout_sec: int = 20, quiet: bool = False) -> {}: if method_name not in ("REPORT", "PUT", "PROPFIND"):