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

Port to Python 3.x #3

Open
huyz opened this issue Apr 2, 2024 · 2 comments
Open

Port to Python 3.x #3

huyz opened this issue Apr 2, 2024 · 2 comments

Comments

@huyz
Copy link
Owner

huyz commented Apr 2, 2024

Yep…

@nneonneo
Copy link

nneonneo commented Aug 18, 2024

FWIW: I got it working with 2to3 and the following two little patches:

  • line 324, url = url[:50] + "+" + sha256(url.encode("utf8")) + "+" + url[-50:]
  • line 453, with open_atomic(meta_file) as meta, open_atomic(target, "wb") as f:

Out of the several slack dumpers I tried, this is the most complete one - and the incremental mode on top of an existing archive is really nice.

I've attached the updated wayslack.py; works with Python 3.10.

wayslack.py.zip

@huyz
Copy link
Owner Author

huyz commented Aug 18, 2024

Oh really, that simple? Thanks, I'll do a new release then…

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

No branches or pull requests

2 participants