summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2013-02-13 01:45:56 +0100
committerhut <hut@lavabit.com>2013-02-13 01:45:56 +0100
commit13a455948601b70f6017755ebc61d883bd13179e (patch)
treeb1f1f71cecea5b50e049fc66a4f36bbf4ad05050
parent350964409e1e40bc17353ca6e962a636293c48e8 (diff)
downloadranger-13a455948601b70f6017755ebc61d883bd13179e.tar.gz
vcs.hg: fix python2 ImportError when importing configparser
-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