Projects
Multimedia
audiotools
audiotools.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File audiotools.patch of Package audiotools (Revision 5)
Currently displaying revision
5
,
Show latest
--- a/audiotools/__init__.py +++ b/audiotools/__init__.py @@ -1172,7 +1172,7 @@ class output_table_row(output_table_divi alignment may be 'left', 'center', 'right'""" - if alignment not in {"left", "center", "right"}: + if alignment not in ["left", "center", "right"]: raise ValueError("alignment must be 'left', 'center', or 'right'") if colspan == 1: self.__columns__.append(output_table_col(text, alignment)) @@ -1729,7 +1729,7 @@ def file_type(file): return WaveAudio elif ((len(header) >= 10) and (header[0:3] == b"ID3") and - (header[3:4] in {b"\x02", b"\x03", b"\x04"})): + (header[3:4] in [b"\x02", b"\x03", b"\x04"])): # file contains ID3v2 tag # so it may be MP3, MP2, FLAC or TTA
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.