Mercurial > hg > config
comparison python/hgrc.py @ 828:34e2b07d8cc7
py35
| author | Jeff Hammel <k0scist@gmail.com> |
|---|---|
| date | Sun, 19 Feb 2017 17:52:45 -0800 |
| parents | a5a339b7fd82 |
| children | 2bfd237c4e6c |
comparison
equal
deleted
inserted
replaced
| 827:a5a339b7fd82 | 828:34e2b07d8cc7 |
|---|---|
| 18 # imports | 18 # imports |
| 19 import optparse | 19 import optparse |
| 20 import os | 20 import os |
| 21 import subprocess | 21 import subprocess |
| 22 import sys | 22 import sys |
| 23 import urlparse | |
| 24 from collections import OrderedDict | 23 from collections import OrderedDict |
| 25 from ConfigParser import RawConfigParser as ConfigParser | 24 from ConfigParser import RawConfigParser as ConfigParser |
| 26 from StringIO import StringIO | 25 from StringIO import StringIO |
| 26 | |
| 27 try: | |
| 28 # python 2 | |
| 29 import urlparse | |
| 30 except ImportError: | |
| 31 import urllib.parse as urlparse | |
| 27 | 32 |
| 28 ### global methods | 33 ### global methods |
| 29 | 34 |
| 30 def isHTTP(path): | 35 def isHTTP(path): |
| 31 """is path an {http,https}:// URL?""" | 36 """is path an {http,https}:// URL?""" |
