Skip to content

Commit

Permalink
remove abspath(__file__) rewrite
Browse files Browse the repository at this point in the history
this only applies to the main module unfortunately
  • Loading branch information
asottile committed Nov 10, 2022
1 parent b736e95 commit a89ff42
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 121 deletions.
13 changes: 0 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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.

0 comments on commit a89ff42

Please sign in to comment.