Skip to content
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

Fix 3.12 ET and datetime deprecation warnings #842

Merged
merged 4 commits into from
Sep 6, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Update dissect/target/plugins/os/windows/adpolicy.py
Co-authored-by: Erik Schamper <[email protected]>
JSCU-CNI and Schamper authored Sep 5, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit d550a3fc42291dac525ad00bbecd961b99762c8e
3 changes: 1 addition & 2 deletions dissect/target/plugins/os/windows/adpolicy.py
Original file line number Diff line number Diff line change
@@ -70,8 +70,7 @@ def _xmltasks(self, policy_dir):
tree = ElementTree.fromstring(xml)
for task in tree.findall(".//{*}Task"):
# https://github.com/python/cpython/issues/83122
properties = task.find("Properties")
if properties is None:
if (properties := task.find("Properties")) is None:
properties = task

task_data = ElementTree.tostring(task)