diff options
author | Guillaume Valadon <guillaume@valadon.net> | 2018-01-21 19:38:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-21 19:38:45 +0100 |
commit | ad4d426b3e56cb02c18497b9b559ee967ecedf18 (patch) | |
tree | 27a0de5c8cd85bcf55ce58c9d8e88663b2a5caf4 | |
parent | dcf5f0f08c32e0ef08846f62497e5b32dd1e9893 (diff) | |
parent | 9c0502942e15adf4819089e6b2bf8204f3cc5bf3 (diff) | |
download | scapy-ad4d426b3e56cb02c18497b9b559ee967ecedf18.tar.gz |
Merge pull request #1080 from p-l-/fix-1078
Remove unnecessary .split() call (@karpierz)
-rwxr-xr-x | scapy/arch/windows/__init__.py | 3 |
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): |