From 6b86d4706b3fb752ee27a56f5369b1a04d86d7b3 Mon Sep 17 00:00:00 2001 From: Jan Tattermusch Date: Tue, 30 Jul 2019 11:54:55 -0700 Subject: [PATCH] yapf code --- tools/buildgen/plugins/expand_version.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tools/buildgen/plugins/expand_version.py b/tools/buildgen/plugins/expand_version.py index 02615f841fe..08cc10b3c60 100755 --- a/tools/buildgen/plugins/expand_version.py +++ b/tools/buildgen/plugins/expand_version.py @@ -38,7 +38,9 @@ class Version: self.tag = None if '-' in version_str: version_str, self.tag = version_str.split('-') - self.major, self.minor, self.patch = [int(x) for x in version_str.split('.')] + self.major, self.minor, self.patch = [ + int(x) for x in version_str.split('.') + ] if override_major: self.major = override_major @@ -114,6 +116,8 @@ def mako_plugin(dictionary): version_tag = '%s_version' % language override_major = settings.get('%s_major_version' % language, None) if version_tag in settings: - settings[version_tag] = Version(settings[version_tag], override_major=override_major) + settings[version_tag] = Version( + settings[version_tag], override_major=override_major) else: - settings[version_tag] = Version(version_str, override_major=override_major) + settings[version_tag] = Version( + version_str, override_major=override_major)