Skip to contentSkip to conversation

master - lvmdbusd: Supress protected member access warning

PATCH tasleson 1 participant 1 message Nov 30, 2016

lore
Share & tools
lore

tasleson

author
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=37f05ccab1a576bdd71be1f4f80ab6f621042d71
Commit:        37f05ccab1a576bdd71be1f4f80ab6f621042d71
Parent:        3bc69cb23c29e8e016282508514ce191c756b89c
Author:        Tony Asleson <[email protected]>
AuthorDate:    Wed Nov 30 12:59:46 2016 -0600
Committer:     Tony Asleson <[email protected]>
CommitterDate: Wed Nov 30 15:59:06 2016 -0600

lvmdbusd: Supress protected member access warning

We want _run to be protected so that users outside of the class don't mistakenly use it. It's for internal use only.

---
 daemons/lvmdbusd/utils.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
daemons/lvmdbusd/utils.py +1 -0
index 561b158..abee659 100644
@@ -525,6 +525,7 @@ class MThreadRunner(object):
 
 	@staticmethod
 	def runner(obj):
+		# noinspection PyProtectedMember
 		obj._run()
 		with obj.cond:
 			obj.function_complete = True