Felix Krull avatar Felix Krull committed 611f0a5

Fix warnings filter.

Comments (0)

Files changed (1)

 		v = float(64 * 512 - 1) / 512.0
 		clamped = True
 	if clamped:
-		warnings.warn("gain value was out of bounds for RVA2 frame, was clamped to %.2f" % v)
+		warnings.warn("gain value was out of bounds for RVA2 frame and was clamped to %.2f" % v)
 	return v
 
 # I'm not sure if this situation could even reasonably happen, but
 		v = float(2**16 - 1) / float(2**15)
 		clamped = True
 	if clamped:
-		warnings.warn("peak value was out of bounds for RVA2 frame, was clamped to %.5f" % v)
+		warnings.warn("peak value was out of bounds for RVA2 frame and was clamped to %.5f" % v)
 	return v
 
 def mp3_legacy_write_gain(filename, trackdata, albumdata):
         return True
 
     with warnings.catch_warnings():
-        warnings.filterwarnings("ignore", module="rgio")
+        warnings.filterwarnings("ignore")
         return (gain_almost_equal(a.gain, b.gain) and
             peak_almost_equal(a.peak, b.peak) and
             almost_equal(a.ref_level, b.ref_level, REF_LEVEL_EPSILON))
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.