File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 25
25
26
26
logger = logging .getLogger ("uc" )
27
27
logger .setLevel (logging .getLogger ().getEffectiveLevel ())
28
- PLATFORM = sys .platform
28
+ sys_plat = sys .platform
29
29
30
30
31
31
class Chrome (selenium .webdriver .chrome .webdriver .WebDriver ):
@@ -499,7 +499,7 @@ def quit(self):
499
499
500
500
def __del__ (self ):
501
501
try :
502
- if "win32" in PLATFORM :
502
+ if "win32" in sys_plat :
503
503
self .stop_client ()
504
504
self .command_executor .close ()
505
505
else :
@@ -536,7 +536,7 @@ def find_chrome_executable():
536
536
"google-chrome-stable" ,
537
537
):
538
538
candidates .add (os .sep .join ((item , subitem )))
539
- if "darwin" in sys . platform :
539
+ if "darwin" in sys_plat :
540
540
gc = "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
541
541
candidates .update (
542
542
[
Original file line number Diff line number Diff line change @@ -17,17 +17,17 @@ class Patcher(object):
17
17
url_repo = "https://chromedriver.storage.googleapis.com"
18
18
zip_name = "chromedriver_%s.zip"
19
19
exe_name = "chromedriver%s"
20
- platform = sys .platform
20
+ sys_plat = sys .platform
21
21
# downloads_folder = "~/.undetected_drivers"
22
- if platform .endswith ("win32" ):
22
+ if sys_plat .endswith ("win32" ):
23
23
zip_name %= "win32"
24
24
exe_name %= ".exe"
25
25
# downloads_folder = "~/appdata/roaming/undetected_drivers"
26
- if platform .endswith ("linux" ):
26
+ if sys_plat .endswith ("linux" ):
27
27
zip_name %= "linux64"
28
28
exe_name %= ""
29
29
# downloads_folder = "~/.local/share/undetected_drivers"
30
- if platform .endswith ("darwin" ):
30
+ if sys_plat .endswith ("darwin" ):
31
31
zip_name %= "mac64"
32
32
exe_name %= ""
33
33
# downloads_folder = "~/Library/Application Support/undetected_drivers"
You can’t perform that action at this time.
0 commit comments