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

Compat with python2 #117

Merged
merged 4 commits into from Aug 16, 2022
Merged

Compat with python2 #117

merged 4 commits into from Aug 16, 2022

Conversation

keszybz
Copy link
Member

@keszybz keszybz commented Aug 16, 2022

No description provided.

@lgtm-com
Copy link

lgtm-com bot commented Aug 16, 2022

This pull request introduces 1 alert when merging 122e6dd into 6320847 - view on LGTM.com

new alerts:

  • 1 for Unused local variable

This is a lazy workaround: 4c9a241
is amended to do nothing on python2, so we have the same issue that
was present before. This allows the code to execute, and hopefully
almost nobody is using python2 code anyway.

f868a56 is amended in the same way.
For python2 code we have the same lack of timezone-awareness as before.

This allows the tests to pass under python 2.7.
'import foo as _foo' is useful in exported modules to avoid 'foo' being
present in the public API. No need to play that game in test code.
I think it's nicer to make one last release with the remaining code
for python2 in place.
@keszybz keszybz merged commit 8360d1d into systemd:main Aug 16, 2022
@keszybz keszybz deleted the python2-compat branch August 16, 2022 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant