[arvados] updated: 2.6.0-12-g2690f3d6c

git repository hosting git at public.arvados.org
Thu Apr 13 15:43:08 UTC 2023


Summary of changes:
 sdk/python/discovery2pydoc.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

       via  2690f3d6ca7700cc24b555ee926403235ebd9342 (commit)
      from  fce5461328b4875dc963ba78d60a64663300b72b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 2690f3d6ca7700cc24b555ee926403235ebd9342
Author: Brett Smith <brett.smith at curii.com>
Date:   Thu Apr 13 11:42:09 2023 -0400

    18799: Make discovery2pydoc status check Py3.7-compatible
    
    The `status` attribute was added in Python 3.9.
    
    Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith at curii.com>

diff --git a/sdk/python/discovery2pydoc.py b/sdk/python/discovery2pydoc.py
index 889ee9329..57ae31613 100755
--- a/sdk/python/discovery2pydoc.py
+++ b/sdk/python/discovery2pydoc.py
@@ -317,7 +317,8 @@ If not provided, retrieved dynamically from Arvados client configuration.
 def main(arglist: Optional[Sequence[str]]=None) -> int:
     args = parse_arguments(arglist)
     with urllib.request.urlopen(args.discovery_url) as discovery_file:
-        if not (discovery_file.status is None or 200 <= discovery_file.status < 300):
+        status = discovery_file.getcode()
+        if not (status is None or 200 <= status < 300):
             print(
                 f"error getting {args.discovery_url}: server returned {discovery_file.status}",
                 file=sys.stderr,

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list