Skip to content

Commit 4363246

Browse files
Move pygments.token import to top of file
Co-authored-by: Emery Berger <emeryberger@users.noreply.github.com>
1 parent a4070f9 commit 4363246

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/chatdbg/chatdbg_pdb.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
from pathlib import Path
1313

1414
import IPython
15+
from pygments.token import Token
1516

1617
import pdb
1718

@@ -474,8 +475,6 @@ def _hidden_predicate(self, frame):
474475

475476
def print_stack_trace(self, context=None, locals=None):
476477
# override to print the skips into stdout instead of stderr and to add locals
477-
from pygments.token import Token
478-
479478
if context is None:
480479
context = self.context
481480
try:

0 commit comments

Comments
 (0)