From 9423f65a9024c68c5ab6b3bcc2cce52f824dac6f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 24 Aug 2023 12:06:08 -0700 Subject: [PATCH] Bump backports-functools-lru-cache from 1.6.4 to 1.6.6 (#2127) * Bump backports-functools-lru-cache from 1.6.4 to 1.6.6 Bumps [backports-functools-lru-cache](https://github.com/jaraco/backports.functools_lru_cache) from 1.6.4 to 1.6.6. - [Release notes](https://github.com/jaraco/backports.functools_lru_cache/releases) - [Changelog](https://github.com/jaraco/backports.functools_lru_cache/blob/main/NEWS.rst) - [Commits](https://github.com/jaraco/backports.functools_lru_cache/compare/v1.6.4...v1.6.6) --- updated-dependencies: - dependency-name: backports-functools-lru-cache dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] * Update backports-functools-lru-cache==1.6.6 --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> [skip ci] --- lib/backports/__init__.py | 6 +----- lib/backports/functools_lru_cache.py | 1 - requirements.txt | 2 +- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/lib/backports/__init__.py b/lib/backports/__init__.py index b09491b2..0d1f7edf 100644 --- a/lib/backports/__init__.py +++ b/lib/backports/__init__.py @@ -1,5 +1 @@ -# A Python "namespace package" http://www.python.org/dev/peps/pep-0382/ -# This always goes inside of a namespace package's __init__.py -from pkgutil import extend_path - -__path__ = extend_path(__path__, __name__) # type: ignore +__path__ = __import__('pkgutil').extend_path(__path__, __name__) # type: ignore diff --git a/lib/backports/functools_lru_cache.py b/lib/backports/functools_lru_cache.py index 8be4515f..1b83fe99 100644 --- a/lib/backports/functools_lru_cache.py +++ b/lib/backports/functools_lru_cache.py @@ -89,7 +89,6 @@ def lru_cache(maxsize=100, typed=False): # noqa: C901 # to allow the implementation to change (including a possible C version). def decorating_function(user_function): - cache = dict() stats = [0, 0] # make statistics updateable non-locally HITS, MISSES = 0, 1 # names for the stats fields diff --git a/requirements.txt b/requirements.txt index 5f3de400..e8dbb20d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,7 +2,7 @@ appdirs==1.4.4 apscheduler==3.10.1 arrow==1.2.3 backports.csv==1.0.7 -backports.functools-lru-cache==1.6.4 +backports.functools-lru-cache==1.6.6 backports.zoneinfo==0.2.1;python_version<"3.9" beautifulsoup4==4.12.2 bleach==6.0.0