You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by jd...@apache.org on 2023/04/10 21:45:08 UTC

[qpid-python] 01/06: QPID-8631: `new.module` -> `types.ModuleType`

This is an automated email from the ASF dual-hosted git repository.

jdanek pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/qpid-python.git

commit c3f3a058350ef3ac66f27ce16f4085eee4c7bb41
Author: Jiri Daněk <jd...@redhat.com>
AuthorDate: Sat Apr 8 17:45:16 2023 +0200

    QPID-8631: `new.module` -> `types.ModuleType`
---
 qpid/spec08.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/qpid/spec08.py b/qpid/spec08.py
index d027720..cc86d26 100644
--- a/qpid/spec08.py
+++ b/qpid/spec08.py
@@ -30,7 +30,7 @@ situations.
 """
 
 from __future__ import print_function
-import re, new, mllib, qpid
+import re, types, mllib, qpid
 from util import fill
 
 class SpecContainer:
@@ -122,7 +122,7 @@ class Spec(Metadata):
     return qpid.Struct(type, *args, **kwargs)
 
   def define_module(self, name, doc = None):
-    module = new.module(name, doc)
+    module = types.ModuleType(name, doc)
     module.__file__ = self.file
     for c in self.classes:
       cls = c.define_class(c.name)


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org