summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/vcs/hg.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/ranger/vcs/hg.py b/ranger/vcs/hg.py
index df5940dd..ac56d8ec 100644
--- a/ranger/vcs/hg.py
+++ b/ranger/vcs/hg.py
@@ -21,7 +21,10 @@ import os
 import re
 import shutil
 from datetime import datetime
-from configparser import RawConfigParser
+try:
+    from configparser import RawConfigParser
+except ImportError:
+    from ConfigParser import RawConfigParser
 
 from .vcs import Vcs