This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository python-efl.
View the commit online.
commit eeba58256d324865c2be2c8c41be30e5cb538d52
Author: Dave Andreoli <d...@gurumeditation.it>
AuthorDate: Sat Aug 30 12:11:54 2025 +0200
setup.py: silence pyright warnings
---
setup.py | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/setup.py b/setup.py
index 3032499..5917395 100755
--- a/setup.py
+++ b/setup.py
@@ -17,14 +17,14 @@ EFL_MIN_VER = '1.28.0'
# === pkg-config helper ===
def cmd_output(cmd):
p = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
- p.wait()
- if p.returncode != 0:
- print(f'WARNING: An error occurred while running "{cmd}" (code {p.returncode})')
- stderr_content = p.stderr.read().decode('utf-8').strip()
+ retcode = p.wait()
+ if retcode != 0:
+ print(f'WARNING: An error occurred while running "{cmd}" (code {retcode})')
+ stderr_content = p.stderr.read().decode('utf-8').strip() if p.stderr else None
if stderr_content:
print(stderr_content)
return ''
- return p.stdout.read().decode('utf-8').strip()
+ return p.stdout.read().decode('utf-8').strip() if p.stdout else ''
def pkg_config(name, require, min_vers=None):
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.