Skip to content

Commit fcef2ec

Browse files
committed
remove deprecated imports
1 parent 054973c commit fcef2ec

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

partitura/io/importmusicxml.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,7 @@
1717
# lxml does XSD validation too but has problems with the MusicXML 3.1 XSD, so we use
1818
# the xmlschema package for validating MusicXML against the definition
1919
import xmlschema
20-
21-
# Use importlib.resources for modern Python versions
22-
if sys.version_info >= (3, 9):
23-
from importlib.resources import files
24-
else:
25-
# Backport for Python 3.7-3.8
26-
try:
27-
from importlib_resources import files
28-
except ImportError:
29-
from importlib.resources import files
20+
from importlib.resources import files
3021

3122
from partitura.directions import parse_direction
3223
import partitura.score as score

0 commit comments

Comments
 (0)