changeset 829:2bfd237c4e6c

py35
author Jeff Hammel <k0scist@gmail.com>
date Sun, 19 Feb 2017 17:54:57 -0800
parents 34e2b07d8cc7
children 6de24d387889
files python/hgrc.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/python/hgrc.py	Sun Feb 19 17:52:45 2017 -0800
+++ b/python/hgrc.py	Sun Feb 19 17:54:57 2017 -0800
@@ -27,8 +27,11 @@
 try:
     # python 2
     import urlparse
+    from ConfigParser import RawConfigParser as ConfigParser
 except ImportError:
+    # python 3
     import urllib.parse as urlparse
+    from configparser import RawConfigParser as ConfigParser
 
 ### global methods