Skip to content

Commit 4083b8d

Browse files
style: format code with autopep8
Format code with autopep8 This commit fixes the style issues introduced in 8c7b746 according to the output from Autopep8. Details: https://app.deepsource.com/gh/avinashkranjan/Amazing-Python-Scripts/transform/5c8af45f-f7da-4444-964a-ee80b143d980/
1 parent 8c7b746 commit 4083b8d

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Online_on_Whatsapp/online.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ def checkStatus():
2121
USER = "/html/body/div[1]/div/div/div[2]/div[1]/span/div/span/div/div[2]/div[1]/div/div/div[2]/div/div"
2222
ONLINE = "/html/body/div[1]/div/div/div[4]/div/header/div[2]/div[2]/span"
2323

24-
browser = webdriver.Chrome(executable_path=r"/Users/sanketwable/downloads/chromedriver")
24+
browser = webdriver.Chrome(
25+
executable_path=r"/Users/sanketwable/downloads/chromedriver")
2526
browser.get("https://web.whatsapp.com/")
2627

2728
print("Loading..\n")
@@ -37,7 +38,8 @@ def checkStatus():
3738
search.send_keys(user_name)
3839
time.sleep(2)
3940

40-
user = browser.find_element_by_xpath('//span[@title="{}"]'.format(user_name))
41+
user = browser.find_element_by_xpath(
42+
'//span[@title="{}"]'.format(user_name))
4143
user.click()
4244

4345
time.sleep(2)
@@ -50,4 +52,4 @@ def checkStatus():
5052
print("is offline\n")
5153

5254

53-
print("Done checking WhatsApp online Status")
55+
print("Done checking WhatsApp online Status")

Online_on_Whatsapp/users.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
"Pravin Kardile",
99
"Harry cse",
1010
"Nipun Nitkkr It",
11-
]
11+
]

0 commit comments

Comments
 (0)