From 35567c166842cca3ff6af3226ff526f25c79507f Mon Sep 17 00:00:00 2001 From: cclauss Date: Mon, 25 Jun 2018 19:50:40 +0200 Subject: global __version__ In setup.py (#4753) This change helps both humans and linters to understand the unusual method of instantiating this global variable. --- python/setup.py | 1 + 1 file changed, 1 insertion(+) (limited to 'python') diff --git a/python/setup.py b/python/setup.py index 9a328cb5..1a282f99 100755 --- a/python/setup.py +++ b/python/setup.py @@ -44,6 +44,7 @@ def GetVersion(): with open(os.path.join('google', 'protobuf', '__init__.py')) as version_file: exec(version_file.read(), globals()) + global __version__ return __version__ -- cgit v1.2.3