Pārlūkot izejas kodu

[hive] Missing import of _ for internationalization

Romain Rigaux 11 gadi atpakaļ
vecāks
revīzija
ffab977
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  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