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

remove abspath(__file__) rewrite #751

Merged
merged 1 commit into from Nov 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 0 additions & 13 deletions README.md
Expand Up @@ -665,19 +665,6 @@ Availability:
```


### remove unnecessary abspath

Availability:
- `--py39-plus` is passed on the commandline.

```diff
from os.path import abspath

-abspath(__file__)
+__file__
```


### pep 604 typing rewrites

Availability:
Expand Down
1 change: 0 additions & 1 deletion pyupgrade/_data.py
Expand Up @@ -43,7 +43,6 @@ class State(NamedTuple):

RECORD_FROM_IMPORTS = frozenset((
'__future__',
'os.path',
'functools',
'mmap',
'select',
Expand Down
53 changes: 0 additions & 53 deletions pyupgrade/_plugins/abspath_file.py

This file was deleted.

54 changes: 0 additions & 54 deletions tests/features/abspath_file_test.py

This file was deleted.