Skip to content

Commit

Permalink
add docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed Jan 23, 2025
1 parent 9143e06 commit 37d2f7a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions psutil/_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,9 @@ def conn_to_ntuple(fd, fam, type_, laddr, raddr, status, status_map, pid=None):


def broadcast_addr(addr):
"""Given the address ntuple returned by ``net_if_addrs()``
calculates the broadcast address.
"""
import ipaddress

if not addr.address or not addr.netmask:
Expand Down

0 comments on commit 37d2f7a

Please sign in to comment.