Skip to content

Remove Python2 crumbs - #12367

Merged
adiroiban merged 2 commits into
twisted:trunkfrom
a-detiste:trunk
Nov 21, 2024
Merged

adiroiban merged 2 commits into
twisted:trunkfrom
a-detiste:trunk

Conversation

@a-detiste

Copy link
Copy Markdown
Contributor

This is just a little cleanup.

The outdated docs might be confusing to newcomers who didn't got to live through the great Py2 -> 3 transition.

Greetings

@codspeed

codspeed Bot commented Nov 18, 2024 •

Copy link
Copy Markdown

CodSpeed Performance Report

Merging #12367 will degrade performances by 3.02%

Comparing a-detiste:trunk (3624f4f) with trunk (a6c0e2d)

Summary

⚡ 1 improvements
❌ 1 regressions
✅ 23 untouched benchmarks

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Benchmarks breakdown

Benchmark trunk a-detiste:trunk Change
⚡ test_deferred_await_unfired 370.6 µs 361 µs +2.66%
❌ test_tcp_throughput 5.1 ms 5.3 ms -3.02%

@adiroiban adiroiban left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for the clenaup. It looks good.

I have added a newsfragment file to help with generating the future release notes.

I think that this is a small cleanup and we don't need to add more info for the release notes


exec(
r'''
from __future__ import print_function

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

There is this comment at the top of the file

# DO NOT EDIT xpathparser.py!

... I guess that this is ok... we don't need to re-run Yapps for this cleanup

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think it's fine if the two copies are updated in sync.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

No need for release notes for this.

@adiroiban adiroiban changed the title remove Python2 crumbs Remove Python2 crumbs Nov 21, 2024
@adiroiban
adiroiban merged commit 7ac990f into twisted:trunk Nov 21, 2024
@adiroiban

Copy link
Copy Markdown
Member

I have merged this as this is mostly a cleanup.

Thanks Alexandre for your help.


@itamarst the performance tests are quite flaky

For now I have just merged this PR by ignoring their results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants