Bug Fix lp:825493
Added gettext support in glance/common/client.py Change-Id: I6933cae26646050de1ef7b05724d1c77fa88b2cf
This commit is contained in:
parent
c451de83b9
commit
2b4369a26e
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user