From d9e23d6535d85703517673c7b160c8173d36d9d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Wed, 17 Aug 2016 01:46:13 +0200 Subject: [PATCH] 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. --- qubes/core2migration.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qubes/core2migration.py b/qubes/core2migration.py index 3228887d..01ecbf07 100644 --- a/qubes/core2migration.py +++ b/qubes/core2migration.py @@ -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")