Skip to content

Commit dc7abae

Browse files
Fix broken imports
1 parent 09f5205 commit dc7abae

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

Lib/profiling/sampling/collector.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
from abc import ABC, abstractmethod
2+
from collections import deque
23
from .constants import (
34
THREAD_STATUS_HAS_GIL,
45
THREAD_STATUS_ON_CPU,
5-
THREAD_STATUS_UNKNOWN,
6-
THREAD_STATUS_GIL_REQUESTED,
76
)
87

8+
try:
9+
from _remote_debugging import FrameInfo
10+
except ImportError:
11+
# Fallback definition if _remote_debugging is not available
12+
FrameInfo = None
13+
914
class Collector(ABC):
1015
@abstractmethod
1116
def collect(self, stack_frames):

0 commit comments

Comments
 (0)