From 27dd6631dbc55d86d42399ab488b840d25beee6e Mon Sep 17 00:00:00 2001 From: Ben Finney Date: Wed, 28 Oct 2015 15:56:59 +1100 Subject: =?UTF-8?q?Make=20an=20equivalent=20to=20=E2=80=98shlex.quote?= =?UTF-8?q?=E2=80=99=20available=20in=20Python=20<=203.3.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/coveragetest.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/coveragetest.py') diff --git a/tests/coveragetest.py b/tests/coveragetest.py index 0e9076cc..05a7dc4a 100644 --- a/tests/coveragetest.py +++ b/tests/coveragetest.py @@ -10,6 +10,14 @@ import os import random import re import shlex +try: + shlex.quote +except AttributeError: + # Useful function, available under a different (undocumented) name + # in Python versions earlier than 3.3. + import pipes + shlex.quote = pipes.quote + del pipes import shutil import sys -- cgit v1.2.1