From d14e98aacdac0a600108fce9bb1fd278ac9cd3df Mon Sep 17 00:00:00 2001 From: Jonas Hahnfeld Date: Sat, 21 Sep 2019 13:47:08 +0200 Subject: [PATCH 1/4] musicxml: Replace new.classobj() by type() for Python 3 --- python/musicxml.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python/musicxml.py b/python/musicxml.py index e1ddeb20e4..ecb0d0581f 100644 --- a/python/musicxml.py +++ b/python/musicxml.py @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -#import new import string from rational import * import re @@ -1794,7 +1793,7 @@ def get_class(name): return classname else: class_name = name2class_name(name) - klass = new.classobj(class_name,(Music_xml_node,) , {}) + klass = type(class_name,(Music_xml_node,) , {}) class_dict[name] = klass return klass -- 2.23.0