Python3 is a game-changer and I won't loose my mind

This commit is contained in:
Miroslav Stampar
2019-03-27 17:56:37 +01:00
parent 41c3139c01
commit e56c422a8c
5 changed files with 52 additions and 43 deletions

View File

@@ -20,7 +20,10 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
from UserDict import DictMixin
try:
from UserDict import DictMixin
except ImportError:
from collections import MutableMapping as DictMixin
class OrderedDict(dict, DictMixin):