Bug Fix lp:825493

Added gettext support in glance/common/client.py

Change-Id: I6933cae26646050de1ef7b05724d1c77fa88b2cf
This commit is contained in:
Justin Shepherd 2011-08-12 17:32:32 -05:00
parent c451de83b9
commit 2b4369a26e

View File

@ -3,6 +3,12 @@ import logging
import socket
import urllib
# See http://code.google.com/p/python-nose/issues/detail?id=373
# The code below enables glance.client standalone to work with i18n _() blocks
import __builtin__
if not hasattr(__builtin__, '_'):
setattr(__builtin__, '_', lambda x: x)
from glance.common import exception