aboutsummaryrefslogtreecommitdiff
path: root/pandora/py2compat.py
diff options
context:
space:
mode:
Diffstat (limited to 'pandora/py2compat.py')
-rw-r--r--pandora/py2compat.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/pandora/py2compat.py b/pandora/py2compat.py
index b8767ba..dfd9abd 100644
--- a/pandora/py2compat.py
+++ b/pandora/py2compat.py
@@ -7,6 +7,11 @@ patch Python 2 code to support those changes. When Python 2 support is
7dropped this module can be removed and imports can be updated. 7dropped this module can be removed and imports can be updated.
8""" 8"""
9 9
10
11def with_metaclass(meta, *bases):
12 return meta("NewBase", bases, {})
13
14
10try: 15try:
11 from configparser import ConfigParser 16 from configparser import ConfigParser
12except ImportError: 17except ImportError: