Project

General

Profile

Actions

Idea #20710

closed

Stop using deprecated pipes module

Added by Brett Smith over 1 year ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
SDKs
Start date:
07/05/2023
Due date:
Story points:
0.5
Release relationship:
Auto

Description

When you run tests with Python 3.11+, you get a bunch of this warning:

/home/brett/Curii/arvados/sdk/python/tests/run_test_server.py:15: DeprecationWarning: 'pipes' is deprecated and slated for removal in Python 3.13
  import pipes

run_test_server.py only uses this module for shell quoting. Find a replacement to use instead.


Subtasks 1 (0 open1 closed)

Task #20714: Review 20710-shlex-quotingResolvedBrett Smith07/05/2023Actions
Actions #2

Updated by Lucas Di Pentima over 1 year ago

One small nit: the services/fuse/tests/test_exec.py file imports the pipes.quote() func as a backwards compatibility option, but as shlex.quote() is supported since Python 3.3, we can just remove that code.

With that, it LGTM.

Actions #3

Updated by Brett Smith over 1 year ago

  • Status changed from In Progress to Resolved
Actions #4

Updated by Peter Amstutz over 1 year ago

  • Release set to 66
Actions

Also available in: Atom PDF