diff options
Diffstat (limited to 'pandora/py2compat.py')
-rw-r--r-- | pandora/py2compat.py | 5 |
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 | |||
7 | dropped this module can be removed and imports can be updated. | 7 | dropped this module can be removed and imports can be updated. |
8 | """ | 8 | """ |
9 | 9 | ||
10 | |||
11 | def with_metaclass(meta, *bases): | ||
12 | return meta("NewBase", bases, {}) | ||
13 | |||
14 | |||
10 | try: | 15 | try: |
11 | from configparser import ConfigParser | 16 | from configparser import ConfigParser |
12 | except ImportError: | 17 | except ImportError: |