tools/translate: fix couple of errors caught by the lint check.

bzr revid: p_christ@hol.gr-20101229113134-6cz48hjh2hcc186e
This commit is contained in:
P. Christeas
2010-12-29 13:31:34 +02:00
parent fbc69de16b
commit 263b4524fb
+2 -3
View File
@@ -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