summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChmouel Boudjnah <chmouel@enovance.com>2014-01-14 16:26:40 +0000
committerChmouel Boudjnah <chmouel@enovance.com>2014-01-14 16:28:00 +0000
commite1425fc8bb338633225f8c9834539bacd35ce99f (patch)
tree9cccf02583e9c1abd17205d3b08f40e262d37e9f
parent4561e0da469145cb4c9eb59cecd50766b73da574 (diff)
downloadswift-bench-e1425fc8bb338633225f8c9834539bacd35ce99f.tar.gz
Remove gettext.
This was hardly used and remove a dependence on main swift. Change-Id: I29b3a0cdeb00b4414d6fed9e1ab0a63b54c1539a
-rw-r--r--swiftbench/bench.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/swiftbench/bench.py b/swiftbench/bench.py
index 84449f3..44ffa88 100644
--- a/swiftbench/bench.py
+++ b/swiftbench/bench.py
@@ -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: