Fix PyLint warning for Windows

This commit is contained in:
Ivan Kravets
2018-12-26 22:33:21 +02:00
parent a60c57ac58
commit 74218f4f93

View File

@ -358,6 +358,7 @@ def get_cid():
uid = uuid.getnode()
cid = uuid.UUID(bytes=hashlib.md5(str(uid).encode()).digest())
cid = str(cid)
if "windows" in util.get_systype() or os.getuid() > 0:
if ("windows" in util.get_systype()
or os.getuid() > 0): # yapf: disable pylint: disable=no-member
set_state_item("cid", cid)
return cid