From 6b222528f3b5a581e699c3364a5e327764689d40 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Fri, 27 Sep 2013 23:26:28 +0200 Subject: [PATCH] Reintroduce __version_info__ variable At least one application (mysql-workbench) (used to) use(s) the __version_info__ that got removed by commit 99859b8b021a5d13ca067a3e79560d6121f9c52f. Breaking existing software with new versions of paramiko should be avoided. This pull-request reintroduces the __version_info__ var, but fills it from the __version__ var. No need to maintain multiple version strings. Conflicts: paramiko/__init__.py --- paramiko/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/paramiko/__init__.py b/paramiko/__init__.py index 6a3e7a8..9e309cf 100644 --- a/paramiko/__init__.py +++ b/paramiko/__init__.py @@ -56,6 +56,7 @@ if sys.version_info < (2, 5): __author__ = "Jeff Forcier " __version__ = "1.8.1" +__version_info__ = tuple([ int(d) for d in __version__.split(".") ]) __license__ = "GNU Lesser General Public License (LGPL)"