]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Remove deprecated use of gettextutils import _
authorJay S. Bryant <jsbryant@us.ibm.com>
Wed, 10 Sep 2014 03:07:48 +0000 (22:07 -0500)
committerRushi Agrawal <rushi.agr@gmail.com>
Fri, 10 Oct 2014 18:12:07 +0000 (23:42 +0530)
commita108a828bb6123c46d5452eff862d9d88a323226
tree9ceeeee9a8153e59a94215e04bbf07032c39d096
parent35b6b55ff3c79ed345c6c682f3aa676097f9a7a3
Remove deprecated use of gettextutils import _

The initial hacking check I wrote allowed users to check in code
using 'from cinder.openstack.common.gettextutils import _' or
'from cinder.i18n import _'.  This was to ease the transition for
code that was in flight with the old import.

Now that we have moved Cinder over to using cinder.i18n and most
of the code that was in flight with the old import has been merged
and/or fixed, I am updating the hacking check to enforce the use of
cinder.i18n and fixing the cases that still had the old import.

Change-Id: Iff6ccac1996c06bbc5defd5139113a2baa0b677c
cinder/api/__init__.py
cinder/hacking/checks.py
cinder/keymgr/barbican.py
cinder/volume/drivers/prophetstor/dpl_fc.py
cinder/volume/drivers/prophetstor/dpl_iscsi.py
cinder/volume/drivers/prophetstor/dplcommon.py
cinder/volume/drivers/remotefs.py
cinder/volume/drivers/smbfs.py
cinder/volume/drivers/vmware/datastore.py
cinder/volume/drivers/windows/remotefs.py
cinder/volume/drivers/windows/smbfs.py