Make vm.run_with_args working on python2

This part of the qubesadmin module still needs to be compatible with
python2.
This commit is contained in:
Marek Marczykowski-Górecki 2019-03-07 03:05:03 +01:00
parent fb910a71cf
commit 05f0d4ca0f
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

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