Commits

Gael Pasgrimaud committed 36a3ad8

py3 import

  • Participants
  • Parent commits 88bde43

Comments (0)

Files changed (1)

ConfigObject/__init__.py

 # -*- coding: utf-8 -*-
-from ConfigParser import ConfigParser
+try:
+    from ConfigParser import ConfigParser
+except:
+    from configparser import ConfigParser
 
 __doc__ = """
 :class:`~ConfigObject.ConfigObject` is a wrapper to the python ConfigParser_ to