File tree Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Original file line number Diff line number Diff line change 3
3
import logging
4
4
import os
5
5
import sys
6
-
7
- try :
8
- from functools import cached_property
9
- except ImportError :
10
- cached_property = property
6
+ from functools import cached_property
11
7
12
8
13
9
def _ensure_modules ():
Original file line number Diff line number Diff line change 5
5
import sys
6
6
import tempfile
7
7
import warnings
8
- from functools import lru_cache
8
+ from functools import cached_property , lru_cache
9
9
from pathlib import Path
10
10
from typing import Dict , List , Optional
11
11
31
31
from pipenv .utils .requirements import normalize_name
32
32
from pipenv .vendor import click
33
33
34
- try :
35
- # this is only in Python3.8 and later
36
- from functools import cached_property
37
- except ImportError :
38
- # eventually distlib will remove cached property when they drop Python3.7
39
- from pipenv .patched .pip ._vendor .distlib .util import cached_property
40
-
41
34
from .dependencies import (
42
35
HackedPythonVersion ,
43
36
convert_deps_to_pip ,
You can’t perform that action at this time.
0 commit comments