Skip to content

Commit

Permalink
Cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
KimiNewt committed Aug 11, 2018
1 parent b64294d commit 4b49197
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/pyshark/__init__.py
Expand Up @@ -4,6 +4,7 @@
class UnsupportedVersionException(Exception):
pass


if sys.version_info[0] < 3 or (sys.version_info[0] == 3 and sys.version_info[1] < 5):
raise UnsupportedVersionException("Your version of Python is unsupported. "
"Pyshark requires Python >= 3.5 & Wireshark >= 2.2.0. "
Expand Down
6 changes: 3 additions & 3 deletions src/pyshark/capture/capture.py
Expand Up @@ -365,9 +365,9 @@ async def _get_tshark_process(self, packet_count=None, stdin=None):
self._log.debug('Creating TShark subprocess with parameters: ' + ' '.join(parameters))

tshark_process = await asyncio.create_subprocess_exec(*parameters,
stdout=subprocess.PIPE,
stderr=self._stderr_output(),
stdin=stdin)
stdout=subprocess.PIPE,
stderr=self._stderr_output(),
stdin=stdin)
self._created_new_process(parameters, tshark_process)
return tshark_process

Expand Down

0 comments on commit 4b49197

Please sign in to comment.