From 263b4524fbf33189d7bed85757863b8c80e3685c Mon Sep 17 00:00:00 2001 From: "P. Christeas" Date: Wed, 29 Dec 2010 13:31:34 +0200 Subject: [PATCH] tools/translate: fix couple of errors caught by the lint check. bzr revid: p_christ@hol.gr-20101229113134-6cz48hjh2hcc186e --- bin/tools/translate.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bin/tools/translate.py b/bin/tools/translate.py index 8fd060c8112..47cd24cfd16 100644 --- a/bin/tools/translate.py +++ b/bin/tools/translate.py @@ -33,12 +33,11 @@ import tarfile import tempfile import threading from os.path import join -import logging from datetime import datetime from lxml import etree -import tools, pooler +import tools import netsvc from tools.misc import UpdateableStr @@ -159,7 +158,7 @@ class GettextAlias(object): # find current DB based on thread/worker db name (see netsvc) db_name = getattr(threading.currentThread(), 'dbname', None) if db_name: - return pooler.get_db_only(dbname) + return pooler.get_db_only(db_name) def _get_cr(self, frame): is_new_cr = False