diff options
author | Jose <jose@zeroc.com> | 2018-10-26 20:34:51 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2018-10-26 20:34:51 +0200 |
commit | 078cf0b81d4ebdf8014bad269eaefdc2f583c4f3 (patch) | |
tree | a0fb8400ff03261bfd4252e093ea339bcf804b0c /python | |
parent | Upgrade default Python version for Windows builds to 3.7 (diff) | |
download | ice-078cf0b81d4ebdf8014bad269eaefdc2f583c4f3.tar.bz2 ice-078cf0b81d4ebdf8014bad269eaefdc2f583c4f3.tar.xz ice-078cf0b81d4ebdf8014bad269eaefdc2f583c4f3.zip |
Do not use imp.new_module deprecated since Python 3.4
Close #260
Diffstat (limited to 'python')
-rw-r--r-- | python/python/Ice/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/python/Ice/__init__.py b/python/python/Ice/__init__.py index 16c77f2c79a..9d1f0b21b8d 100644 --- a/python/python/Ice/__init__.py +++ b/python/python/Ice/__init__.py @@ -11,7 +11,7 @@ Ice module """ -import sys, string, imp, os, threading, warnings, datetime, logging, time, inspect, traceback +import sys, string, os, threading, warnings, datetime, logging, time, inspect, traceback, types # # RTTI problems can occur in C++ code unless we modify Python's dlopen flags. @@ -698,7 +698,7 @@ def createModule(name): elif curr in _pendingModules: mod = _pendingModules[curr] else: - nmod = imp.new_module(curr) + nmod = types.ModuleType(curr) _pendingModules[curr] = nmod mod = nmod |