[arvados] created: 2.6.0-338-g63c629b08

git repository hosting git at public.arvados.org
Wed Jul 5 16:34:06 UTC 2023


        at  63c629b080e1e98b4517510d43f72a6413343756 (commit)


commit 63c629b080e1e98b4517510d43f72a6413343756
Author: Brett Smith <brett.smith at curii.com>
Date:   Wed Jul 5 12:20:57 2023 -0400

    20710: Switch from pipes.quote to shlex.quote
    
    pipes is deprecated in Python 3.11+ and slated to be removed in Python
    3.13. Fortunately we only use pipes.quote, which is literally the same
    as shlex.quote:
    
        >>> import pipes
        <stdin>:1: DeprecationWarning: 'pipes' is deprecated and slated for removal in Python 3.13
        >>> import shlex
        >>> pipes.quote is shlex.quote
        True
    
    Switch to that instead for continued support.
    
    Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith at curii.com>

diff --git a/sdk/python/tests/run_test_server.py b/sdk/python/tests/run_test_server.py
index f9fb36a01..b14ad141e 100644
--- a/sdk/python/tests/run_test_server.py
+++ b/sdk/python/tests/run_test_server.py
@@ -12,9 +12,9 @@ import errno
 import glob
 import httplib2
 import os
-import pipes
 import random
 import re
+import shlex
 import shutil
 import signal
 import socket
@@ -989,8 +989,8 @@ if __name__ == "__main__":
         host = os.environ['ARVADOS_API_HOST']
         if args.auth is not None:
             token = auth_token(args.auth)
-            print("export ARVADOS_API_TOKEN={}".format(pipes.quote(token)))
-            print("export ARVADOS_API_HOST={}".format(pipes.quote(host)))
+            print("export ARVADOS_API_TOKEN={}".format(shlex.quote(token)))
+            print("export ARVADOS_API_HOST={}".format(shlex.quote(host)))
             print("export ARVADOS_API_HOST_INSECURE=true")
         else:
             print(host)

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list