pycln 2.2.2__tar.gz → 2.3.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pycln
3
- Version: 2.2.2
3
+ Version: 2.3.0
4
4
  Summary: A formatter for finding and removing unused import statements.
5
5
  Home-page: https://hadialqattan.github.io/pycln
6
6
  License: MIT
@@ -1,7 +1,7 @@
1
1
  """Pycln path finding utility."""
2
2
  import os
3
3
  import sys
4
- from distutils import sysconfig
4
+ import sysconfig
5
5
  from functools import lru_cache
6
6
  from pathlib import Path
7
7
  from typing import Generator, Optional, Pattern, Set, Tuple
@@ -43,10 +43,7 @@ BIN_IMPORTS = { # In case they are built into CPython.
43
43
  }
44
44
  IMPORTS_WITH_SIDE_EFFECTS = {"this", "antigravity", "rlcompleter"}
45
45
  PYTHON_STDLIB_PATHS = frozenset(
46
- {
47
- sysconfig.get_python_lib(standard_lib=True, plat_specific=True),
48
- sysconfig.get_python_lib(standard_lib=True, plat_specific=False),
49
- }
46
+ {sysconfig.get_path("platstdlib"), sysconfig.get_path("stdlib")}
50
47
  )
51
48
 
52
49
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pycln"
3
- version = "2.2.2"
3
+ version = "2.3.0"
4
4
  description = "A formatter for finding and removing unused import statements."
5
5
  authors = ["Hadi Alqattan <alqattanhadizaki@gmail.com>"]
6
6
  homepage = "https://hadialqattan.github.io/pycln"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes