py3: remove imports from utils.compat

This commit is contained in:
Mr. Outis
2019-12-31 23:16:11 -06:00
parent 9c42809587
commit 27f581cf4e
41 changed files with 37 additions and 73 deletions
+1 -8
View File
@@ -1,14 +1,7 @@
import hashlib
import os
import threading
# Moved in Python 2 -> 3, used only here.
# Not adding to dvc.utils.compat to not load http.server for non-test runs.
try:
from http.server import HTTPServer
except ImportError:
from BaseHTTPServer import HTTPServer
from http.server import HTTPServer
from RangeHTTPServer import RangeRequestHandler