Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Factory:Rebuild
rosegarden
scripts-sf2rg-python3.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File scripts-sf2rg-python3.patch of Package rosegarden
Index: rosegarden-20.12/scripts/sf2rg.py =================================================================== --- rosegarden-20.12.orig/scripts/sf2rg.py +++ rosegarden-20.12/scripts/sf2rg.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/python3 """ sf2rg.py a script that dumps soundfonts data in rosegarden xml data format @@ -11,6 +11,10 @@ depends on : * alsa to get /proc/asound/card0/wavetableD1 """ + +from __future__ import print_function +from __future__ import unicode_literals + __revision__ = "0.1" import os @@ -278,7 +282,7 @@ class Sf2Rg: ) msb = self.getNextMsb() currentBankName = name - if bankNames.has_key(name): + if name in bankNames: name += ' #%02i' % bankCount else: bankId = msb @@ -368,7 +372,7 @@ if __name__ == '__main__': for o, a in optlist: if o == "--help" or o == "-h": - print usage() + print(usage()) sys.exit(0) if o == "--load" or o == "-l": @@ -386,17 +390,17 @@ if __name__ == '__main__': elif o == "--stat" or o == "-s": wtstat = WaveTableStat() - print str(wtstat) + print(str(wtstat)) sys.exit(0) if not sf2rg.sf2files: - print usage() + print(usage()) sys.exit(1) if outputFile is not None: sf2rg.saveToRg(outputFile) elif not quiet: - print str(sf2rg) + print(str(sf2rg))
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor