From a1499db849de4a084bd00c69fb7d6d88b742dc58 Mon Sep 17 00:00:00 2001 From: Worros Date: Sun, 26 Oct 2008 20:13:30 +0900 Subject: [PATCH] Fix return type of tables_by_name discovery for posix --- pyfpdb/Tables.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyfpdb/Tables.py b/pyfpdb/Tables.py index 6afbddea..a5090fd7 100644 --- a/pyfpdb/Tables.py +++ b/pyfpdb/Tables.py @@ -114,7 +114,7 @@ def discover_posix_by_name(c, tablename): tables = discover_posix(c) for t in tables: if tables[t].name.find(tablename) > -1: - return t + return tables[t] return None #