We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 585967c commit f3d4072Copy full SHA for f3d4072
seleniumbase/__init__.py
@@ -1,5 +1,6 @@
1
import collections
2
import pdb
3
+import shutil
4
import sys
5
from selenium import webdriver
6
from seleniumbase.__version__ import __version__
@@ -24,6 +25,11 @@
24
25
pdb.DefaultConfig.enable_hidden_frames = False
26
pdb.DefaultConfig.truncate_long_lines = True
27
pdb.DefaultConfig.sticky_by_default = True
28
+ # Fix spacing for line numbers > 9999
29
+ pdb.Pdb.get_terminal_size = lambda x: (
30
+ shutil.get_terminal_size()[0] - 1,
31
+ shutil.get_terminal_size()[1],
32
+ )
33
if sys.version_info[0] >= 3:
34
from seleniumbase import translate # noqa
35
if sys.version_info >= (3, 7):
0 commit comments