Skip to content

Commit 308d84c

Browse files
authored
Merge pull request #1860 from jacobtylerwalls/jtw/uncompress-logs
Add silent param to uncompressMXL()
2 parents f58a2fa + cef829b commit 308d84c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

music21/musicxml/archiveTools.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ def compressXML(filename: str|pathlib.Path,
101101
def uncompressMXL(filename: str|pathlib.Path,
102102
*,
103103
deleteOriginal=False,
104+
silent=False,
104105
strictMxlCheck=True) -> bool:
105106
'''
106107
Takes a filename, and if the filename corresponds to a compressed musicXML
@@ -119,7 +120,8 @@ def uncompressMXL(filename: str|pathlib.Path,
119120
return False # not a compressed musicXML file
120121

121122
fp: pathlib.Path = common.pathTools.cleanpath(filename, returnPathlib=True)
122-
environLocal.warn(f'Updating file: {fp}')
123+
if not silent: # pragma: no cover
124+
environLocal.warn(f'Updating file: {fp}')
123125
extractPath = str(fp.parent)
124126
unarchivedName = fp.with_suffix('.musicxml').name
125127
# Export container and original xml file to system as a compressed XML.

0 commit comments

Comments
 (0)