portune 0.1.11__tar.gz → 0.1.12__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.11/portune.egg-info → portune-0.1.12}/PKG-INFO +1 -1
- {portune-0.1.11 → portune-0.1.12}/portune/portune.py +9 -2
- {portune-0.1.11 → portune-0.1.12}/portune/version.py +2 -2
- {portune-0.1.11 → portune-0.1.12/portune.egg-info}/PKG-INFO +1 -1
- {portune-0.1.11 → portune-0.1.12}/.github/workflows/python-publish.yml +0 -0
- {portune-0.1.11 → portune-0.1.12}/.gitignore +0 -0
- {portune-0.1.11 → portune-0.1.12}/LICENSE +0 -0
- {portune-0.1.11 → portune-0.1.12}/README.md +0 -0
- {portune-0.1.11 → portune-0.1.12}/portune/__init__.py +0 -0
- {portune-0.1.11 → portune-0.1.12}/portune.egg-info/SOURCES.txt +0 -0
- {portune-0.1.11 → portune-0.1.12}/portune.egg-info/dependency_links.txt +0 -0
- {portune-0.1.11 → portune-0.1.12}/portune.egg-info/entry_points.txt +0 -0
- {portune-0.1.11 → portune-0.1.12}/portune.egg-info/top_level.txt +0 -0
- {portune-0.1.11 → portune-0.1.12}/pyproject.toml +0 -0
- {portune-0.1.11 → portune-0.1.12}/setup.cfg +0 -0
|
@@ -24,7 +24,6 @@ import time
|
|
|
24
24
|
import subprocess
|
|
25
25
|
from concurrent.futures import ThreadPoolExecutor, as_completed
|
|
26
26
|
from collections import defaultdict
|
|
27
|
-
import json
|
|
28
27
|
from html import escape
|
|
29
28
|
import smtplib
|
|
30
29
|
from email.mime.text import MIMEText
|
|
@@ -611,10 +610,18 @@ class ProgressBar:
|
|
|
611
610
|
percentage = f"{100 * self.current / self.total:.1f}%"
|
|
612
611
|
elapsed_time = time.time() - self.start_time
|
|
613
612
|
speed = self.current / elapsed_time if elapsed_time > 0 else 0
|
|
613
|
+
|
|
614
|
+
|
|
614
615
|
# Create the progress message
|
|
615
616
|
progress_msg = f'{self.prefix} |{bar}| {percentage} ({self.current}/{self.total}) [{speed:.1f} ports/s]'
|
|
616
617
|
# Add padding to ensure old content is cleared
|
|
617
|
-
|
|
618
|
+
try:
|
|
619
|
+
col = os.get_terminal_size(2).columns
|
|
620
|
+
except OSError:
|
|
621
|
+
col = 80
|
|
622
|
+
padding = ' ' * (col - len(progress_msg) - 1)
|
|
623
|
+
|
|
624
|
+
sys.stderr.write('\r' + progress_msg[:col - 1] + padding)
|
|
618
625
|
sys.stderr.flush()
|
|
619
626
|
if self.current == self.total:
|
|
620
627
|
sys.stderr.write('\n')
|
|
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
|