Преглед на файлове

[hive] Missing import of _ for internationalization

Romain Rigaux преди 11 години
родител
ревизия
ffab977
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      apps/beeswax/src/beeswax/server/hive_server2_lib.py

+ 3 - 1
apps/beeswax/src/beeswax/server/hive_server2_lib.py

@@ -14,13 +14,15 @@
 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 # See the License for the specific language governing permissions and
 # limitations under the License.
-from itertools import imap
 
 import logging
 import re
 
+from itertools import imap
 from operator import itemgetter
 
+from django.utils.translation import ugettext as _
+
 from desktop.lib import thrift_util
 from desktop.conf import LDAP_PASSWORD, LDAP_USERNAME
 from desktop.conf import DEFAULT_USER