Commits

Andriy Kornatskyy committed 4a1768e

Fixed compatibility issue with python3.2

  • Participants
  • Parent commits bb68724

Comments (0)

Files changed (1)

File demos/template/src/config.py

 
 import os
 
-from ConfigParser import ConfigParser
 from datetime import timedelta
 
+try:  # pragma: nocover
+    from ConfigParser import ConfigParser
+except ImportError:  # pragma: nocover
+    from configparser import ConfigParser
+
 from wheezy.caching import MemoryCache
 from wheezy.core.collections import defaultdict
 from wheezy.core.i18n import TranslationsManager