Skip to content

Commit ae06684

Browse files
Postpone import.
1 parent d8ba39a commit ae06684

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/contextlib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Utilities for with-statement contexts. See PEP 343."""
22
import abc
3-
from inspect import getattr_static, _descriptor_get
43
import os
54
import sys
65
import _collections_abc
@@ -472,6 +471,7 @@ def __exit__(self, exctype, excinst, exctb):
472471

473472
def _lookup_special(obj, name, default):
474473
# Follow the standard lookup behaviour for special methods.
474+
from inspect import getattr_static, _descriptor_get
475475
cls = type(obj)
476476
try:
477477
descr = getattr_static(cls, name)

0 commit comments

Comments
 (0)