changeset 112:ca8bdbe49a94

* pytave.py: Upgrade to collections.MutableMapping from UserDict.DictMixin
author Mike Miller <mtmiller@octave.org>
date Sun, 20 Sep 2015 02:40:53 +0200
parents f89a4eb2e864
children 6552040d6d4c
files package/pytave.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/package/pytave.py	Sun Sep 20 01:41:50 2015 +0200
+++ b/package/pytave.py	Sun Sep 20 02:40:53 2015 +0200
@@ -20,10 +20,10 @@
 
 """Python to Octave bridge"""
 
-import UserDict
 import _pytave
 import atexit
 import sys
+import collections
 
 arg0 = sys.argv[0]
 # Some web application packages, such as mod_wsgi for Apache,
@@ -244,7 +244,7 @@
     """Equivalent to pkg unload. See Octave documentation."""
     return _pytave.feval(0, "pkg", ("unload", pkg_name))
 
-class _VariablesDict(UserDict.DictMixin):
+class _VariablesDict(collections.MutableMapping):
     def __init__(self, global_variables, native=False):
         self.global_variables = global_variables
         self.native = native