##// END OF EJS Templates
keepalive: use absolute_import
Gregory Szorc -
r27507:a16489f9 default
parent child Browse files
Show More
@@ -107,15 +107,17 b' EXTRA ATTRIBUTES AND METHODS'
107
107
108 # $Id: keepalive.py,v 1.14 2006/04/04 21:00:32 mstenner Exp $
108 # $Id: keepalive.py,v 1.14 2006/04/04 21:00:32 mstenner Exp $
109
109
110 from __future__ import absolute_import
111
110 import errno
112 import errno
111 import httplib
113 import httplib
112 import socket
114 import socket
115 import sys
113 import thread
116 import thread
114 import urllib2
117 import urllib2
115
118
116 DEBUG = None
119 DEBUG = None
117
120
118 import sys
119 if sys.version_info < (2, 4):
121 if sys.version_info < (2, 4):
120 HANDLE_ERRORS = 1
122 HANDLE_ERRORS = 1
121 else: HANDLE_ERRORS = 0
123 else: HANDLE_ERRORS = 0
@@ -616,7 +618,8 b' def error_handler(url):'
616 keepalive_handler.close_all()
618 keepalive_handler.close_all()
617
619
618 def continuity(url):
620 def continuity(url):
619 from util import md5
621 from . import util
622 md5 = util.md5
620 format = '%25s: %s'
623 format = '%25s: %s'
621
624
622 # first fetch the file with the normal http handler
625 # first fetch the file with the normal http handler
@@ -741,7 +744,6 b' def test(url, N=10):'
741
744
742 if __name__ == '__main__':
745 if __name__ == '__main__':
743 import time
746 import time
744 import sys
745 try:
747 try:
746 N = int(sys.argv[1])
748 N = int(sys.argv[1])
747 url = sys.argv[2]
749 url = sys.argv[2]
@@ -106,7 +106,6 b''
106 mercurial/httpclient/_readers.py not using absolute_import
106 mercurial/httpclient/_readers.py not using absolute_import
107 mercurial/httpclient/socketutil.py not using absolute_import
107 mercurial/httpclient/socketutil.py not using absolute_import
108 mercurial/httpconnection.py not using absolute_import
108 mercurial/httpconnection.py not using absolute_import
109 mercurial/keepalive.py not using absolute_import
110 mercurial/keepalive.py requires print_function
109 mercurial/keepalive.py requires print_function
111 mercurial/localrepo.py not using absolute_import
110 mercurial/localrepo.py not using absolute_import
112 mercurial/lsprof.py requires print_function
111 mercurial/lsprof.py requires print_function
General Comments 0
You need to be logged in to leave comments. Login now