Bläddra i källkod

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.
Marek Marczykowski-Górecki 7 år sedan
förälder
incheckning
d9e23d6535
1 ändrade filer med 2 tillägg och 0 borttagningar
  1. 2 0
      qubes/core2migration.py

+ 2 - 0
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")