Skip to content

Commit b2acaf3

Browse files
style: format code with autopep8
Format code with autopep8 This commit fixes the style issues introduced in fae4035 according to the output from Autopep8. Details: https://app.deepsource.com/gh/avinashkranjan/Amazing-Python-Scripts/transform/862886bb-b4cd-4308-8757-945a594d7c8e/
1 parent c509819 commit b2acaf3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

IP from Hostname/ip_from_hostname.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22

33
hostname = input("Enter the URL: ")
44

5-
try :
5+
try:
66
ip_address = socket.gethostbyname(hostname)
77
print(ip_address)
88
except:
99
print('Invalid URL')
10-

0 commit comments

Comments
 (0)