use six to work around rename of configparser
[htsworkflow.git] / htsworkflow / util / api.py
index 7abfa2a2266594147946c875a87c85213d3975d0..ce97e18d84cf6bfddc91f0f12660f5dfd9dbdaaf 100644 (file)
@@ -1,7 +1,7 @@
 """Common functions for accessing the HTS Workflow REST API
 """
 import base64
-from ConfigParser import SafeConfigParser
+from six.moves import configparser
 import random
 import logging
 
@@ -23,7 +23,7 @@ def add_auth_options(parser):
     """Add options OptParser configure authentication options
     """
     # Load defaults from the config files
-    config = SafeConfigParser()
+    config = configparser.SafeConfigParser()
     config.read([os.path.expanduser('~/.htsworkflow.ini'),
                  '/etc/htsworkflow.ini'
                  ])