Skip to content

Commit 8076072

Browse files
Merge pull request #2466 from avinashkranjan/deepsource-transform-dffbdd01
format code with autopep8
2 parents 666bbaa + b2acaf3 commit 8076072

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)