Skip to content

Commit

Permalink
Merge pull request #751 from asottile/file
Browse files Browse the repository at this point in the history
remove abspath(__file__) rewrite
  • Loading branch information
asottile committed Nov 10, 2022
2 parents b736e95 + a89ff42 commit 02b8cdc
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 121 deletions.
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.

0 comments on commit 02b8cdc

Please sign in to comment.