diff options
author | hut <hut@lavabit.com> | 2013-02-13 01:45:56 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2013-02-13 01:45:56 +0100 |
commit | 13a455948601b70f6017755ebc61d883bd13179e (patch) | |
tree | b1f1f71cecea5b50e049fc66a4f36bbf4ad05050 | |
parent | 350964409e1e40bc17353ca6e962a636293c48e8 (diff) | |
download | ranger-13a455948601b70f6017755ebc61d883bd13179e.tar.gz |
vcs.hg: fix python2 ImportError when importing configparser
-rw-r--r-- | ranger/vcs/hg.py | 5 |
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 |