mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-09 12:54:17 +00:00
fixing the requirements-txt-fixer #960
This commit is contained in:
parent
516a8a263c
commit
1196542a9d
1 changed files with 1 additions and 1 deletions
|
|
@ -62,7 +62,7 @@ class Requirement:
|
||||||
|
|
||||||
def fix_requirements(f: IO[bytes]) -> int:
|
def fix_requirements(f: IO[bytes]) -> int:
|
||||||
requirements: list[Requirement] = []
|
requirements: list[Requirement] = []
|
||||||
before = list(f)
|
before = list(set(f))
|
||||||
after: list[bytes] = []
|
after: list[bytes] = []
|
||||||
|
|
||||||
before_string = b''.join(before)
|
before_string = b''.join(before)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue