From 9e7fa0a6ae59414a309b334a0dfafe0a8b15f9e7 Mon Sep 17 00:00:00 2001 From: airelil Date: Wed, 12 Feb 2020 18:37:37 +1300 Subject: [PATCH] Small fixes for pull request #886 --- pywinauto/controls/uiawrapper.py | 4 ++-- pywinauto/linux/application.py | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/pywinauto/controls/uiawrapper.py b/pywinauto/controls/uiawrapper.py index 49fd008a8..52b45b757 100644 --- a/pywinauto/controls/uiawrapper.py +++ b/pywinauto/controls/uiawrapper.py @@ -40,7 +40,7 @@ import comtypes from .. import backend -from ..findwindows import WindowNotFoundError +from .. import WindowNotFoundError # noqa #E402 from ..timings import Timings from .win_base_wrapper import WinBaseWrapper from ..base_wrapper import BaseMeta @@ -131,7 +131,7 @@ def __get__(self, obj, cls): if obj is None: return None value = self.fget(obj) - setattr(obj, self.func_name, value) + #setattr(obj, self.func_name, value) return value lazy_property = LazyProperty diff --git a/pywinauto/linux/application.py b/pywinauto/linux/application.py index 5905e6527..ea4e46b93 100644 --- a/pywinauto/linux/application.py +++ b/pywinauto/linux/application.py @@ -144,7 +144,6 @@ def read_cpu_info(): res = 0.0 else: res = 100.0 * (float(pid_time) / float(sys_time)) - #print("linux app cpu usage: ", res) return res except IOError: