qubes/core2migration: make pylint happy

It doesn't see the class that is just being defined. But since it is in
lambda, that's ok.
This commit is contained in:
Marek Marczykowski-Górecki 2016-08-17 01:46:13 +02:00
parent 6b546ca1e6
commit d9e23d6535
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -36,6 +36,7 @@ import qubes.ext.r3compatibility
class AppVM(qubes.vm.appvm.AppVM):
"""core2 compatibility AppVM class, with variable dir_path"""
dir_path = qubes.property('dir_path',
# pylint: disable=undefined-variable
default=(lambda self: super(AppVM, self).dir_path),
saver=qubes.property.dontsave,
doc="VM storage directory",
@ -47,6 +48,7 @@ class AppVM(qubes.vm.appvm.AppVM):
class StandaloneVM(qubes.vm.standalonevm.StandaloneVM):
"""core2 compatibility StandaloneVM class, with variable dir_path"""
dir_path = qubes.property('dir_path',
# pylint: disable=undefined-variable
default=(lambda self: super(StandaloneVM, self).dir_path),
saver=qubes.property.dontsave,
doc="VM storage directory")