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.'''