Skip to content

Commit 435e7a9

Browse files
Merge pull request containers#607 from yangdanny97/patch-1
Delete custom cached_property in favor of functools.cached_property
2 parents c99ecbd + a1e48da commit 435e7a9

File tree

4 files changed

+2
-14
lines changed

4 files changed

+2
-14
lines changed

podman/api/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Tools for connecting to a Podman service."""
22

3-
from podman.api.cached_property import cached_property
43
from podman.api.client import APIClient
54
from podman.api.api_versions import VERSION, COMPATIBLE_VERSION
65
from podman.api.http_utils import encode_auth_header, prepare_body, prepare_filters
@@ -24,7 +23,6 @@
2423
'COMPATIBLE_VERSION',
2524
'DEFAULT_CHUNK_SIZE',
2625
'VERSION',
27-
'cached_property',
2826
'create_tar',
2927
'decode_header',
3028
'encode_auth_header',

podman/api/cached_property.py

Lines changed: 0 additions & 10 deletions
This file was deleted.

podman/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
import logging
44
import os
55
from contextlib import AbstractContextManager
6+
from functools import cached_property
67
from pathlib import Path
78
from typing import Any, Optional
89

9-
from podman.api import cached_property
1010
from podman.api.client import APIClient
1111
from podman.api.path_utils import get_runtime_dir
1212
from podman.domain.config import PodmanConfig

podman/domain/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
import sys
44
import urllib
5+
from functools import cached_property
56
from pathlib import Path
67
from typing import Optional
78
import json
89

9-
from podman.api import cached_property
1010
from podman.api.path_utils import get_xdg_config_home
1111

1212
if sys.version_info >= (3, 11):

0 commit comments

Comments
 (0)