From 05f0d4ca0f791bfd8fbdec6c568ccd2d19bc395b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Thu, 7 Mar 2019 03:05:03 +0100 Subject: [PATCH] Make vm.run_with_args working on python2 This part of the qubesadmin module still needs to be compatible with python2. --- qubesadmin/vm/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qubesadmin/vm/__init__.py b/qubesadmin/vm/__init__.py index 9d3aa9d..6992dea 100644 --- a/qubesadmin/vm/__init__.py +++ b/qubesadmin/vm/__init__.py @@ -34,6 +34,10 @@ import qubesadmin.devices import qubesadmin.firewall import qubesadmin.tags +if not hasattr(shlex, 'quote'): + # python2 compat + import pipes + shlex.quote = pipes.quote class QubesVM(qubesadmin.base.PropertyHolder): '''Qubes domain.'''