aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Valadon <guillaume@valadon.net>2018-01-21 19:38:45 +0100
committerGitHub <noreply@github.com>2018-01-21 19:38:45 +0100
commitad4d426b3e56cb02c18497b9b559ee967ecedf18 (patch)
tree27a0de5c8cd85bcf55ce58c9d8e88663b2a5caf4
parentdcf5f0f08c32e0ef08846f62497e5b32dd1e9893 (diff)
parent9c0502942e15adf4819089e6b2bf8204f3cc5bf3 (diff)
downloadscapy-ad4d426b3e56cb02c18497b9b559ee967ecedf18.tar.gz
Merge pull request #1080 from p-l-/fix-1078
Remove unnecessary .split() call (@karpierz)
-rwxr-xr-xscapy/arch/windows/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scapy/arch/windows/__init__.py b/scapy/arch/windows/__init__.py
index 66419708..491cbe72 100755
--- a/scapy/arch/windows/__init__.py
+++ b/scapy/arch/windows/__init__.py
@@ -521,7 +521,8 @@ class NetworkInterface(object):
Only available with Npcap."""
# According to https://nmap.org/npcap/guide/npcap-devguide.html#npcap-feature-dot11
self._check_npcap_requirement()
- return sp.Popen([_WlanHelper, self.guid[1:-1], "channel"], stdout=sp.PIPE).communicate()[0].strip().strip()
+ return sp.Popen([_WlanHelper, self.guid[1:-1], "channel"],
+ stdout=sp.PIPE).communicate()[0].strip()
def setchannel(self, channel):
"""Set the channel of the interface (1-14):