Skip to content
Snippets Groups Projects
Commit edda7778 authored by Georges Racinet's avatar Georges Racinet
Browse files

Python 2: dropping support

See heptapod#353 for rationale. Actually, this is more along
the lines of not bothering about *potential* Python 2 support,
as HGitaly wasn't really working under Python 2 anyway, notably
because of type annotations (granted, we could have dropped them,
but it doesn't matter any more).
parent db408256
No related branches found
No related tags found
No related merge requests found
......@@ -25,16 +25,8 @@
add_RepositoryServiceServicer_to_server
)
# mercurial.urllibcompat seems to be willing to make urlparse access uniform,
# but couldn't make it work on py3 right away, and it looks like dead code
# anyway. Conditional import is way simpler, provided one does not do it by
# catching ImportError (because of the demandimport trap)
if pycompat.ispy3:
from urllib.parse import urlparse
from concurrent import futures
else:
from urlparse import urlparse
import futures
from urllib.parse import urlparse
from concurrent import futures
logger = logging.getLogger(__name__)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment