-
Notifications
You must be signed in to change notification settings - Fork 597
[Diff] upgrade to py3.13 #4369
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
base: master
Are you sure you want to change the base?
[Diff] upgrade to py3.13 #4369
Conversation
Diff/diff.py
Outdated
| fpath = Path(fname) | ||
| if not fname or not fpath.exists(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Path(None) raises a TypeError and bool(Path('')) is True.
|
I'll fix the left-overs later tonight, thanks for the feedback. |
| def splitlines_keep_ends(text): | ||
| lines = text.split('\n') | ||
| from pathlib import Path | ||
| from typing import Iterable, Iterator |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I'll take a look later again.
| v: sublime.View = win.create_output_panel(name=panel_name) | ||
| if view: | ||
| v.settings().set('word_wrap', view.settings().get('word_wrap')) | ||
| v.settings().set(key="word_wrap", value=view.settings().get(key="word_wrap")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Definitely not a fan of adding keyword argument names everywhere. What prompted you to do this?

No description provided.