You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by tv...@apache.org on 2021/02/04 08:02:35 UTC

[buildstream] 02/16: testing/.../site: del unnecessary global 'version'

This is an automated email from the ASF dual-hosted git repository.

tvb pushed a commit to branch aevri/win32_receive_signals
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit 2d3eac0cfb2bd1fe27088e6cdfeeec0d01d0fbc3
Author: Angelos Evripiotis <je...@bloomberg.net>
AuthorDate: Tue Oct 15 14:22:00 2019 +0100

    testing/.../site: del unnecessary global 'version'
    
    It's not doing any harm, but I don't think we mean to have that in the
    module's namespace.
---
 src/buildstream/testing/_utils/site.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/buildstream/testing/_utils/site.py b/src/buildstream/testing/_utils/site.py
index ca74d95..c614794 100644
--- a/src/buildstream/testing/_utils/site.py
+++ b/src/buildstream/testing/_utils/site.py
@@ -20,6 +20,7 @@ try:
     # e.g. on Mac via Homebrew we get "git version 2.19.0".
     version = tuple(int(x) for x in out.split(' ')[2].split('.')[:3])
     HAVE_OLD_GIT = version < (1, 8, 5)
+    del version
 
     GIT_ENV = {
         'GIT_AUTHOR_DATE': '1320966000 +0200',