Skip to content

remove unnecessary prints #566

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 25, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions Apps/Mac/inspector.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
])

settings_conf_path = str(Path(__file__).parent.parent.parent / "Framework" / "settings.conf")
print(f"Settings config path: {settings_conf_path}")

def get_mouse_position():
event = CoreGraphics.CGEventCreate(None)
Expand Down Expand Up @@ -154,7 +153,6 @@ def get_dump(self):
self.page_src = ""

def render_tree(self):
print('rendertree')
if not self.page_src:
return

Expand All @@ -178,7 +176,7 @@ def check_bounding_box(element):

def get_attribute_string(element):
ignore = ['x', 'y', 'width', 'height']
return " ".join([f'{k}="{v}"' for k, v in element.attrib.items() if k not in ignore])
return " ".join([f'{k}="{v}"' for k, v in element.attrib.items() if k not in ignore and v])

def set_single_zeuz_apiplugin(root):
elements = root.findall(".//*[@zeuz='aiplugin']")
Expand Down Expand Up @@ -250,7 +248,6 @@ def send_to_server(self):
try:
url = server + "/" if server[-1] != "/" else server
url += "ai_record_single_action/"
print(url)
content = json.dumps({
'page_src': self.xml_str,
"action_type": "android",
Expand Down
Loading