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.
- {portune-0.1.16/portune.egg-info → portune-0.1.17}/PKG-INFO +1 -1
- {portune-0.1.16 → portune-0.1.17}/portune/portune.py +1 -2
- {portune-0.1.16 → portune-0.1.17}/portune/version.py +2 -2
- {portune-0.1.16 → portune-0.1.17/portune.egg-info}/PKG-INFO +1 -1
- {portune-0.1.16 → portune-0.1.17}/.github/workflows/python-publish.yml +0 -0
- {portune-0.1.16 → portune-0.1.17}/.gitignore +0 -0
- {portune-0.1.16 → portune-0.1.17}/LICENSE +0 -0
- {portune-0.1.16 → portune-0.1.17}/README.md +0 -0
- {portune-0.1.16 → portune-0.1.17}/portune/__init__.py +0 -0
- {portune-0.1.16 → portune-0.1.17}/portune.egg-info/SOURCES.txt +0 -0
- {portune-0.1.16 → portune-0.1.17}/portune.egg-info/dependency_links.txt +0 -0
- {portune-0.1.16 → portune-0.1.17}/portune.egg-info/entry_points.txt +0 -0
- {portune-0.1.16 → portune-0.1.17}/portune.egg-info/top_level.txt +0 -0
- {portune-0.1.16 → portune-0.1.17}/pyproject.toml +0 -0
- {portune-0.1.16 → portune-0.1.17}/setup.cfg +0 -0
|
@@ -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 =
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|