Skip to content

Compat with python2#117

Merged
keszybz merged 4 commits intosystemd:mainfrom
keszybz:python2-compat
Aug 16, 2022
Merged

Compat with python2#117
keszybz merged 4 commits intosystemd:mainfrom
keszybz:python2-compat

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.

1 participant