From b453f82800d009dfbbfe1503c94844eac87611f4 Mon Sep 17 00:00:00 2001 From: Christopher Suter Date: Mon, 8 Oct 2018 12:00:36 -0400 Subject: [PATCH] Avoid including trailing '.' in version string --- tensorflow_probability/python/version.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tensorflow_probability/python/version.py b/tensorflow_probability/python/version.py index 66f750fdbf..86773bfbdc 100644 --- a/tensorflow_probability/python/version.py +++ b/tensorflow_probability/python/version.py @@ -27,9 +27,9 @@ _VERSION_SUFFIX = '' # Example, '0.4.0.dev' -__version__ = '.'.join([ +__version__ = '.'.join(s for s in [ _MAJOR_VERSION, _MINOR_VERSION, _PATCH_VERSION, _VERSION_SUFFIX, -]) +] if s != '')