From 2fe816fab0077726a317754432d1fde2c06773e2 Mon Sep 17 00:00:00 2001 From: Manuel Guenther <manuel.guenther@idiap.ch> Date: Mon, 1 Jun 2015 14:22:18 +0200 Subject: [PATCH] Fixed warning --- bob/bio/base/test/utils.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bob/bio/base/test/utils.py b/bob/bio/base/test/utils.py index 1791feb4..bf4721b6 100644 --- a/bob/bio/base/test/utils.py +++ b/bob/bio/base/test/utils.py @@ -79,9 +79,8 @@ def atnt_database_directory(): atnt_downloaded_directory = tempfile.mkdtemp(prefix='atnt_db_') db_url = "http://www.cl.cam.ac.uk/Research/DTG/attarchive/pub/data/att_faces.zip" - from .logger import warn - warn("Downloading the AT&T database from '%s' to '%s' ..." % (db_url, atnt_downloaded_directory)) - warn("To avoid this, please download the database manually, extract the data and set the ATNT_DATABASE_DIRECTORY environment variable to this directory.") + logger.warn("Downloading the AT&T database from '%s' to '%s' ...", db_url, atnt_downloaded_directory) + logger.warn("To avoid this, please download the database manually, extract the data and set the ATNT_DATABASE_DIRECTORY environment variable to this directory.") # to avoid re-downloading in parallel test execution os.environ['ATNT_DATABASE_DIRECTORY'] = atnt_downloaded_directory -- GitLab