Remove gettext.

This was hardly used and remove a dependence on main swift.

Change-Id: I29b3a0cdeb00b4414d6fed9e1ab0a63b54c1539a
This commit is contained in:
Chmouel Boudjnah 2014-01-14 16:26:40 +00:00
parent 4561e0da46
commit e1425fc8bb
1 changed files with 6 additions and 7 deletions

View File

@ -22,7 +22,6 @@ import signal
import socket
import logging
from contextlib import contextmanager
from swift import gettext_ as _
from optparse import Values
import eventlet
@ -230,11 +229,11 @@ class Bench(object):
def _log_status(self, title):
total = time.time() - self.beginbeat
self.logger.info(_('%(complete)s %(title)s [%(fail)s failures], '
'%(rate).01f/s'),
{'title': title, 'complete': self.complete,
'fail': self.failures,
'rate': (float(self.complete) / total)})
self.logger.info(
'%(complete)s %(title)s [%(fail)s failures], %(rate).01f/s',
{'title': title, 'complete': self.complete,
'fail': self.failures,
'rate': (float(self.complete) / total)})
@contextmanager
def connection(self):
@ -243,7 +242,7 @@ class Bench(object):
try:
yield hc
except CannotSendRequest:
self.logger.info(_("CannotSendRequest. Skipping..."))
self.logger.info("CannotSendRequest. Skipping...")
try:
hc.close()
except Exception: