mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-08 04:50:07 +01:00
Merge pull request #1638 from efahl/patch-1
Eliminate deprecation warning
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
__author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
|
||||
|
||||
from .interpreter import Interpreter
|
||||
import imp
|
||||
import types
|
||||
import os
|
||||
import sys
|
||||
|
||||
@@ -111,7 +111,7 @@ class Buffer:
|
||||
text = text.replace('\r\n', '\n')
|
||||
text = text.replace('\r', '\n')
|
||||
name = self.modulename or self.name
|
||||
module = imp.new_module(name)
|
||||
module = types.ModuleType(name)
|
||||
newspace = module.__dict__.copy()
|
||||
try:
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user