Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 13225b3

Browse files
committed
Remove backports.functools_lru_cache
1 parent 78c484e commit 13225b3

File tree

7 files changed

+5
-28
lines changed

7 files changed

+5
-28
lines changed

build_alllocal.cmd

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
:: conda install pyqt
77
:: # this package is only available in the conda-forge channel
88
:: conda install -c conda-forge msinttypes
9-
:: if you build on py2.7:
10-
:: conda install -c conda-forge backports.functools_lru_cache
119

1210
set TARGET=bdist_wheel
1311
IF [%1]==[] (

lib/matplotlib/dviread.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
from six.moves import xrange
2424

2525
from collections import namedtuple
26-
from functools import partial, wraps
26+
from functools import lru_cache, partial, wraps
2727
import logging
2828
import numpy as np
2929
import os
@@ -35,11 +35,6 @@
3535
from matplotlib import cbook, rcParams
3636
from matplotlib.compat import subprocess
3737

38-
try:
39-
from functools import lru_cache
40-
except ImportError: # Py2
41-
from backports.functools_lru_cache import lru_cache
42-
4338
if six.PY3:
4439
def ord(x):
4540
return x

lib/matplotlib/font_manager.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
"""
4646

4747
from collections import Iterable
48+
from functools import lru_cache
4849
import json
4950
import os
5051
import sys
@@ -57,11 +58,6 @@
5758
from matplotlib.fontconfig_pattern import (
5859
parse_fontconfig_pattern, generate_fontconfig_pattern)
5960

60-
try:
61-
from functools import lru_cache
62-
except ImportError:
63-
from backports.functools_lru_cache import lru_cache
64-
6561
_log = logging.getLogger(__name__)
6662

6763
USE_FONTCONFIG = False

lib/matplotlib/fontconfig_pattern.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,7 @@
2222
from pyparsing import (Literal, ZeroOrMore, Optional, Regex, StringEnd,
2323
ParseException, Suppress)
2424

25-
try:
26-
from functools import lru_cache
27-
except ImportError:
28-
from backports.functools_lru_cache import lru_cache
25+
from functools import lru_cache
2926

3027
family_punc = r'\\\-:,'
3128
family_unescape = re.compile(r'\\([%s])' % family_punc).sub

lib/matplotlib/mathtext.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,7 @@
2424
from math import ceil
2525
import unicodedata
2626
from warnings import warn
27-
28-
try:
29-
from functools import lru_cache
30-
except ImportError: # Py2
31-
from backports.functools_lru_cache import lru_cache
27+
from functools import lru_cache
3228

3329
import numpy as np
3430

lib/matplotlib/path.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@
1616

1717
from weakref import WeakValueDictionary
1818

19-
try:
20-
from functools import lru_cache
21-
except ImportError: # Py2
22-
from backports.functools_lru_cache import lru_cache
19+
from functools import lru_cache
2320

2421
import numpy as np
2522

setupext.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1441,8 +1441,6 @@ def get_install_requires(self):
14411441
"six>=1.10",
14421442
"kiwisolver>=1.0.1",
14431443
]
1444-
if sys.version_info < (3,):
1445-
install_requires += ["backports.functools_lru_cache"]
14461444
if sys.version_info < (3,) and os.name == "posix":
14471445
install_requires += ["subprocess32"]
14481446
return install_requires

0 commit comments

Comments
 (0)