Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

py/test/selenium/webdriver/common/network.py: remove python 2 code #14502

Merged
merged 14 commits into from
Oct 1, 2024
5 changes: 1 addition & 4 deletions py/test/selenium/webdriver/common/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@

def get_interface_ip(ifname):
def _bytes(value, encoding):
try:
return bytes(value, encoding) # Python 3
except TypeError:
return value # Python 2
return bytes(value, encoding)

sckt = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
return socket.inet_ntoa(
Expand Down
Loading