File tree Expand file tree Collapse file tree 5 files changed +14
-11
lines changed Expand file tree Collapse file tree 5 files changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ pytest new_test.py --rec -q -s --url=wikipedia.org
29
29
>>>>>>>>>>>>>>>>>> PDB set_trace >>>>>>>>>>>>>>>>>
30
30
31
31
-> import pdb; pdb.set_trace ()
32
- > .../YOUR_CURRENT_DIRECTORY /new_test.py(9)
33
-
32
+ > PATH_TO_YOUR_CURRENT_DIRECTORY /new_test.py(9)
33
+ ....
34
34
5 def test_recording(self):
35
35
6 if self.recorder_ext and not self.xvfb:
36
36
7 # When you are done recording actions,
Original file line number Diff line number Diff line change @@ -33,7 +33,8 @@ chardet==4.0.0;python_version>="3.6" and python_version<"3.7"
33
33
chardet == 5.0.0 ;python_version >= "3.7"
34
34
charset-normalizer == 2.0.12 ;python_version >= "3.6" and python_version<"3.7"
35
35
charset-normalizer == 2.1.1 ;python_version >= "3.7"
36
- urllib3 == 1.26.13
36
+ urllib3 == 1.26.12 ;python_version < "3.7"
37
+ urllib3 == 1.26.13 ;python_version >= "3.7"
37
38
requests == 2.27.1 ;python_version < "3.6"
38
39
requests == 2.27.1 ;python_version >= "3.6" and python_version<"3.7"
39
40
requests == 2.28.1 ;python_version >= "3.7"
@@ -98,7 +99,7 @@ pyreadline==2.1;platform_system=="Windows" and python_version<"3.6"
98
99
pyreadline3 == 3.4.1 ;platform_system == "Windows" and python_version>="3.6"
99
100
pyrepl == 0.9.0
100
101
tabcompleter == 1.0.0
101
- pdbp == 1.0 .0
102
+ pdbp == 1.1 .0
102
103
colorama == 0.4.6 ;python_version < "3.6"
103
104
colorama == 0.4.5 ;python_version >= "3.6" and python_version<"3.7"
104
105
colorama == 0.4.6 ;python_version >= "3.7"
Original file line number Diff line number Diff line change 1
1
# seleniumbase package
2
- __version__ = "4.9.2 "
2
+ __version__ = "4.9.3 "
Original file line number Diff line number Diff line change @@ -33,16 +33,17 @@ def invalid_run_command(msg=None):
33
33
34
34
35
35
def sc_ranges ():
36
- # Get the ranges of special characters of Chinese, Japanese, and Korean .
36
+ # Get the ranges of special double-width characters .
37
37
special_char_ranges = [
38
38
{"from" : ord ("\u4e00 " ), "to" : ord ("\u9FFF " )},
39
39
{"from" : ord ("\u3040 " ), "to" : ord ("\u30ff " )},
40
40
{"from" : ord ("\uac00 " ), "to" : ord ("\ud7a3 " )},
41
+ {"from" : ord ("\uff01 " ), "to" : ord ("\uff60 " )},
41
42
]
42
43
return special_char_ranges
43
44
44
45
45
- def is_cjk (char ):
46
+ def is_char_wide (char ):
46
47
# Returns True if the special character is Chinese, Japanese, or Korean.
47
48
sc = any (
48
49
[range ["from" ] <= ord (char ) <= range ["to" ] for range in sc_ranges ()]
@@ -52,10 +53,10 @@ def is_cjk(char):
52
53
53
54
def get_width (line ):
54
55
# Return the true width of the line. Not the same as line length.
55
- # Chinese/Japanese/Korean characters take up double width visually .
56
+ # Chinese/Japanese/Korean characters take up two spaces of width .
56
57
line_length = len (line )
57
58
for char in line :
58
- if is_cjk (char ):
59
+ if is_char_wide (char ):
59
60
line_length += 1
60
61
return line_length
61
62
Original file line number Diff line number Diff line change 158
158
'chardet==5.0.0;python_version>="3.7"' , # Stay in sync with "requests"
159
159
'charset-normalizer==2.0.12;python_version>="3.6" and python_version<"3.7"' , # noqa: E501
160
160
'charset-normalizer==2.1.1;python_version>="3.7"' , # Sync "requests"
161
- 'urllib3==1.26.13' , # Stay in sync with "requests"
161
+ 'urllib3==1.26.12;python_version<"3.7"' ,
162
+ 'urllib3==1.26.13;python_version>="3.7"' ,
162
163
'requests==2.27.1;python_version<"3.7"' ,
163
164
'requests==2.28.1;python_version>="3.7"' ,
164
165
'requests-toolbelt==0.10.1' ,
222
223
'pyreadline3==3.4.1;platform_system=="Windows" and python_version>="3.6"' , # noqa: E501
223
224
"pyrepl==0.9.0" ,
224
225
"tabcompleter==1.0.0" ,
225
- "pdbp==1.0 .0" ,
226
+ "pdbp==1.1 .0" ,
226
227
'colorama==0.4.6;python_version<"3.6"' ,
227
228
'colorama==0.4.5;python_version>="3.6" and python_version<"3.7"' ,
228
229
'colorama==0.4.6;python_version>="3.7"' ,
You can’t perform that action at this time.
0 commit comments