File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change 18
18
import json
19
19
import logging
20
20
import os
21
- import plistlib
22
21
import psutil
23
22
import re
24
23
import shlex
@@ -230,17 +229,6 @@ def is_safari():
230
229
return EMTEST_BROWSER and 'safari' in EMTEST_BROWSER .lower ()
231
230
232
231
233
- def get_safari_version ():
234
- plist_path = os .path .join (EMTEST_BROWSER .strip (), 'Contents' , 'version.plist' )
235
- version_str = plistlib .load (open (plist_path , 'rb' )).get ('CFBundleShortVersionString' )
236
- # Split into parts (major.minor.patch)
237
- parts = (version_str .split ('.' ) + ['0' , '0' , '0' ])[:3 ]
238
- # Convert each part into integers, discarding any trailing string, e.g. '13a' -> 13.
239
- parts = [int (re .match (r"\d+" , s ).group ()) if re .match (r"\d+" , s ) else 0 for s in parts ]
240
- # Return version as XXYYZZ
241
- return parts [0 ] * 10000 + parts [1 ] * 100 + parts [2 ]
242
-
243
-
244
232
def get_browser_config ():
245
233
if is_chrome ():
246
234
return ChromeConfig ()
You can’t perform that action at this time.
0 commit comments