Do not use __builtin__ in python3

__builtin__ does not exist in Python 3, use
six.moves.builtins instead.

Change-Id: I1256f7df641af1085daca1d1ad2c34cb44cda265
closes-bug: #1290234
This commit is contained in:
zhangguoqing 2016-01-05 14:42:52 +00:00
parent 832ca69468
commit da906b14a3
2 changed files with 2 additions and 1 deletions

View File

@ -3,3 +3,4 @@
# process, which may cause wedges in the gate later.
eventlet>=0.17.4
six>=1.9.0

View File

@ -1,6 +1,6 @@
# See http://code.google.com/p/python-nose/issues/detail?id=373
# The code below enables nosetests to work with i18n _() blocks
import __builtin__
import six.moves.builtins as __builtin__
setattr(__builtin__, '_', lambda x: x)