portune 0.1.16__tar.gz → 0.1.17__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of portune might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: portune
3
- Version: 0.1.16
3
+ Version: 0.1.17
4
4
  Summary: Simple Python HTTP Exec Server
5
5
  Author: Franck Jouvanceau
6
6
  Maintainer: Franck Jouvanceau
@@ -30,7 +30,6 @@ from email.mime.text import MIMEText
30
30
  from email.mime.multipart import MIMEMultipart
31
31
  from email.mime.application import MIMEApplication
32
32
  from typing import List, Dict, Tuple, Any, Optional, Union
33
- import shlex
34
33
 
35
34
  # Constants and global variables
36
35
  OS = platform.system().lower()
@@ -723,7 +722,7 @@ def ping_host(ip: str, timeout: float = 2.0) -> bool:
723
722
  True if host responds to ping, False otherwise
724
723
  """
725
724
  timeoutms = str(int(timeout * 1000))
726
- ping_cmd = shlex.split(PING.format(ip=ip, timeout=timeout, timeoutms=timeoutms))
725
+ ping_cmd = PING.format(ip=ip, timeout=timeout, timeoutms=timeoutms).split()
727
726
  try:
728
727
  output = subprocess.run(ping_cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, timeout=timeout + 1)
729
728
  return output.returncode == 0
@@ -17,5 +17,5 @@ __version__: str
17
17
  __version_tuple__: VERSION_TUPLE
18
18
  version_tuple: VERSION_TUPLE
19
19
 
20
- __version__ = version = '0.1.16'
21
- __version_tuple__ = version_tuple = (0, 1, 16)
20
+ __version__ = version = '0.1.17'
21
+ __version_tuple__ = version_tuple = (0, 1, 17)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: portune
3
- Version: 0.1.16
3
+ Version: 0.1.17
4
4
  Summary: Simple Python HTTP Exec Server
5
5
  Author: Franck Jouvanceau
6
6
  Maintainer: Franck Jouvanceau
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes