From 59b29d02f8c4674a9922df53c9df9f960e6eaf34 Mon Sep 17 00:00:00 2001 From: Kamil Madac Date: Wed, 4 Dec 2013 15:11:10 +0100 Subject: [PATCH] Tiny comment fix --- requests/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requests/utils.py b/requests/utils.py index 1bebbaa..7b728c0 100644 --- a/requests/utils.py +++ b/requests/utils.py @@ -423,7 +423,7 @@ def address_in_network(ip, net): def dotted_netmask(mask): """ Converts mask from /xx format to xxx.xxx.xxx.xxx - Example: if mask is /24 function returns 255.255.255.0 + Example: if mask is 24 function returns 255.255.255.0 """ bits = 0xffffffff ^ (1 << 32 - mask) - 1 return socket.inet_ntoa(struct.pack('>I', bits)) -- 2.34.1