From a5297b9548d952d8bebfd1afcf4ac8db1fc65cd8 Mon Sep 17 00:00:00 2001 From: "Angel M. Adames" Date: Thu, 7 Dec 2017 14:56:36 -0400 Subject: [PATCH] closes #20: Minor improvements. - Fix badly placed return value for nested conditional. - Fixed indentation for raise function under for loop. --- ChangeLog | 5 +++++ setup.py | 5 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index c17a3da..5b8fa2d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,11 @@ CHANGELOG ========= +1.1.2 - 2017-12-07 + + * Fix badly placed return value for nested conditional under FANN libs search function. + * Fixed indentation for raise function under for loop. + 1.1.1 - 2017-12-07 * Added '/usr/lib64' directory to FANN libs search function for setup.py. diff --git a/setup.py b/setup.py index 83a4d36..37af7c7 100755 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ from setuptools import setup, Extension, find_packages NAME = 'fann2' -VERSION = '1.1.1' +VERSION = '1.1.2' with open("README.rst") as f: LONG_DESCRIPTION = f.read() @@ -63,7 +63,6 @@ def find_fann(): if os.path.isdir(ver): if find_x(ver): return True - return True raise Exception("Couldn't find FANN source libs!") else: dirs = ['/lib', '/usr/lib', '/usr/lib64', '/usr/local/lib', '/usr/pkg/lib'] @@ -71,7 +70,7 @@ def find_fann(): if os.path.isdir(path): if find_x(path): return True - raise Exception("Couldn't find FANN source libs!") + raise Exception("Couldn't find FANN source libs!") def find_swig(): '''Find SWIG executable path'''