summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnon Yaari <wiggin15@yahoo.com>2020-10-06 00:54:19 +0300
committerGitHub <noreply@github.com>2020-10-05 23:54:19 +0200
commitd3bb5d4d36ae752beecf9cb1d559c81c9a53a9c0 (patch)
tree1c94e9b128b204b6b9cb2365bdfa58ce20ea8642
parent1626bae30349627e4d0a25ac9fb4cf3a743b94e7 (diff)
downloadpsutil-d3bb5d4d36ae752beecf9cb1d559c81c9a53a9c0.tar.gz
remove old unused code (#1843)
Co-authored-by: Arnon Yaari <arnony@infinidat.com>
-rw-r--r--psutil/_pslinux.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/psutil/_pslinux.py b/psutil/_pslinux.py
index 4dc3a0ab..3c9ff281 100644
--- a/psutil/_pslinux.py
+++ b/psutil/_pslinux.py
@@ -843,10 +843,6 @@ class Connections:
else:
ip = socket.inet_ntop(family, base64.b16decode(ip))
else: # IPv6
- # old version - let's keep it, just in case...
- # ip = ip.decode('hex')
- # return socket.inet_ntop(socket.AF_INET6,
- # ''.join(ip[i:i+4][::-1] for i in range(0, 16, 4)))
ip = base64.b16decode(ip)
try:
# see: https://github.com/giampaolo/psutil/issues/201