File tree Expand file tree Collapse file tree
py/test/selenium/webdriver/common Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -285,7 +285,7 @@ def _get_events(driver):
285285 if "key" in e and e ["key" ].startswith (u"U+" ):
286286 key = e ["key" ]
287287 hex_suffix = key [key .index ("+" ) + 1 :]
288- e ["key" ] = unichr (int (hex_suffix , 16 ))
288+ e ["key" ] = chr (int (hex_suffix , 16 ))
289289
290290 # WebKit sets code as 'Unidentified' for unidentified key codes, but
291291 # tests expect ''.
Original file line number Diff line number Diff line change @@ -298,7 +298,7 @@ def _get_events(driver):
298298 if "key" in e and e ["key" ].startswith (u"U+" ):
299299 key = e ["key" ]
300300 hex_suffix = key [key .index ("+" ) + 1 :]
301- e ["key" ] = unichr (int (hex_suffix , 16 ))
301+ e ["key" ] = chr (int (hex_suffix , 16 ))
302302
303303 # WebKit sets code as 'Unidentified' for unidentified key codes, but
304304 # tests expect ''.
You can’t perform that action at this time.
0 commit comments