Sfoglia il codice sorgente

[desktop] Add 'from __future__ import absolute_import'

This is part of a very gradual process to get Hue compatible
with future versions of Python.
Erick Tryzelaar 10 anni fa
parent
commit
cc640f8963

+ 2 - 0
desktop/core/src/desktop/lib/metrics/__init__.py

@@ -14,4 +14,6 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+from __future__ import absolute_import
+
 from desktop.lib.metrics.registry import global_registry

+ 2 - 0
desktop/core/src/desktop/metrics.py

@@ -14,6 +14,8 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+from __future__ import absolute_import
+
 import gc
 import multiprocessing
 import threading

+ 2 - 0
desktop/core/src/desktop/middleware.py

@@ -15,6 +15,8 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+from __future__ import absolute_import
+
 import inspect
 import json
 import logging

+ 2 - 0
desktop/core/src/desktop/urls.py

@@ -15,6 +15,8 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+from __future__ import absolute_import
+
 import logging
 import os
 import re