In recent versions of Python, pipes.quote is an alias for shlex.quote, but that function is only available from Python 3.3. This patch should work transparently in all supported versions of Python and avoid deprecation warnings in all cases.
Oh, I'm only seeing now that #342 already fixes it, with the difference that #342 uses try/except and my patch relies on if/else. I'm happy to drop my PR in favour of @musicinmybrain's
closes #341
In recent versions of Python,
pipes.quote
is an alias forshlex.quote
, but that function is only available from Python 3.3. This patch should work transparently in all supported versions of Python and avoid deprecation warnings in all cases.