Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Check that gc method is available before using in synapse/app/_base #11816

Merged
merged 5 commits into from
Jan 25, 2022

Conversation

H-Shay
Copy link
Contributor

@H-Shay H-Shay commented Jan 24, 2022

A similar check was removed in #11683. The check determined whether the program was being run on Python 3.7 before using a garbage collection method and thus was deemed redundant in this comment: #11683 (review), so I removed it. However, it was pointed out here: #11683 (comment) that not all implementations of Python have that API so I have restored a version of the removed check in this new PR.

@H-Shay H-Shay requested a review from a team as a code owner January 24, 2022 20:21
Copy link
Member

@clokep clokep left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Looking at the removed code it was a bit silly that we were doing the same exact check twice in a row...

synapse/app/_base.py Outdated Show resolved Hide resolved
@H-Shay H-Shay merged commit b8bf600 into develop Jan 25, 2022
@H-Shay H-Shay deleted the shay/restore_checks branch January 25, 2022 18:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants