summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Firth <dan.firth@codethink.co.uk>2016-12-05 12:44:01 +0000
committerDaniel Firth <dan.firth@codethink.co.uk>2016-12-12 10:55:04 +0000
commitc62a4ddee91942b860168aad2c33a8e7959c34d4 (patch)
tree43d15a7b448c8b4fb81632d8c2d33ca5ff45676b
parent52e52866c58b24ccf947473057654e6bac1069f1 (diff)
downloadybd-lc/get_submodule_details.tar.gz
Don't bother handling python 3 configparserlc/get_submodule_details
-rw-r--r--ybd/repos.py11
1 files changed, 2 insertions, 9 deletions
diff --git a/ybd/repos.py b/ybd/repos.py
index e0f2e4c..cce2c47 100644
--- a/ybd/repos.py
+++ b/ybd/repos.py
@@ -25,15 +25,8 @@ import requests
import app
import utils
import tempfile
-
-
-if sys.version_info.major == 2:
- # For compatibility with Python 2.
- from ConfigParser import RawConfigParser
- from StringIO import StringIO
-else:
- from configparser import RawConfigParser
- from io import StringIO
+from ConfigParser import RawConfigParser
+from StringIO import StringIO
def get_repo_url(repo):