Mercurial > hg > config
changeset 828:34e2b07d8cc7
py35
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Sun, 19 Feb 2017 17:52:45 -0800 |
parents | a5a339b7fd82 |
children | 2bfd237c4e6c |
files | python/hgrc.py |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/python/hgrc.py Sun Feb 19 17:48:52 2017 -0800 +++ b/python/hgrc.py Sun Feb 19 17:52:45 2017 -0800 @@ -20,11 +20,16 @@ import os import subprocess import sys -import urlparse from collections import OrderedDict from ConfigParser import RawConfigParser as ConfigParser from StringIO import StringIO +try: + # python 2 + import urlparse +except ImportError: + import urllib.parse as urlparse + ### global methods def isHTTP(path):