Skip to content

Commit bc37544

Browse files
committed
Use consistent naming
1 parent 1d7fe91 commit bc37544

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

seleniumbase/undetected/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
logger = logging.getLogger("uc")
2727
logger.setLevel(logging.getLogger().getEffectiveLevel())
28-
PLATFORM = sys.platform
28+
sys_plat = sys.platform
2929

3030

3131
class Chrome(selenium.webdriver.chrome.webdriver.WebDriver):
@@ -499,7 +499,7 @@ def quit(self):
499499

500500
def __del__(self):
501501
try:
502-
if "win32" in PLATFORM:
502+
if "win32" in sys_plat:
503503
self.stop_client()
504504
self.command_executor.close()
505505
else:
@@ -536,7 +536,7 @@ def find_chrome_executable():
536536
"google-chrome-stable",
537537
):
538538
candidates.add(os.sep.join((item, subitem)))
539-
if "darwin" in sys.platform:
539+
if "darwin" in sys_plat:
540540
gc = "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
541541
candidates.update(
542542
[

seleniumbase/undetected/patcher.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ class Patcher(object):
1717
url_repo = "https://chromedriver.storage.googleapis.com"
1818
zip_name = "chromedriver_%s.zip"
1919
exe_name = "chromedriver%s"
20-
platform = sys.platform
20+
sys_plat = sys.platform
2121
# downloads_folder = "~/.undetected_drivers"
22-
if platform.endswith("win32"):
22+
if sys_plat.endswith("win32"):
2323
zip_name %= "win32"
2424
exe_name %= ".exe"
2525
# downloads_folder = "~/appdata/roaming/undetected_drivers"
26-
if platform.endswith("linux"):
26+
if sys_plat.endswith("linux"):
2727
zip_name %= "linux64"
2828
exe_name %= ""
2929
# downloads_folder = "~/.local/share/undetected_drivers"
30-
if platform.endswith("darwin"):
30+
if sys_plat.endswith("darwin"):
3131
zip_name %= "mac64"
3232
exe_name %= ""
3333
# downloads_folder = "~/Library/Application Support/undetected_drivers"

0 commit comments

Comments
 (0)