Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1504)

Unified Diff: webrtc/modules/audio_processing/test/py_quality_assessment/apm_quality_assessment_gencfgs.py

Issue 2812273002: Fix lint errors to enable stricter PyLint rules (Closed)
Patch Set: Rebased Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/audio_processing/test/py_quality_assessment/apm_quality_assessment_gencfgs.py
diff --git a/webrtc/modules/audio_processing/test/py_quality_assessment/apm_quality_assessment_gencfgs.py b/webrtc/modules/audio_processing/test/py_quality_assessment/apm_quality_assessment_gencfgs.py
index 0be696d9ba242089f0ad197f1e653394c9e84369..d2764b06d1df174dfce18fb8d674d1a6a383cd4d 100755
--- a/webrtc/modules/audio_processing/test/py_quality_assessment/apm_quality_assessment_gencfgs.py
+++ b/webrtc/modules/audio_processing/test/py_quality_assessment/apm_quality_assessment_gencfgs.py
@@ -61,7 +61,7 @@ def _GenerateDefaultOverridden(config_override):
def _GenerateAllDefaultButOne():
"""Disables the flags enabled by default one-by-one.
"""
- CONFIG_SETS = {
+ config_sets = {
'no_AEC': {'-aec': 0,},
'no_AGC': {'-agc': 0,},
'no_HP_filter': {'-hpf': 0,},
@@ -70,13 +70,13 @@ def _GenerateAllDefaultButOne():
'no_transient_suppressor': {'-ts': 0,},
'no_vad': {'-vad': 0,},
}
- _GenerateDefaultOverridden(CONFIG_SETS)
+ _GenerateDefaultOverridden(config_sets)
def _GenerateAllDefaultPlusOne():
"""Enables the flags disabled by default one-by-one.
"""
- CONFIG_SETS = {
+ config_sets = {
'with_AECM': {'-aec': 0, '-aecm': 1,}, # AEC and AECM are exclusive.
'with_AGC_limiter': {'-agc_limiter': 1,},
'with_AEC_delay_agnostic': {'-delay_agnostic': 1,},
@@ -87,7 +87,7 @@ def _GenerateAllDefaultPlusOne():
'with_LC': {'-lc': 1,},
'with_refined_adaptive_filter': {'-refined_adaptive_filter': 1,},
}
- _GenerateDefaultOverridden(CONFIG_SETS)
+ _GenerateDefaultOverridden(config_sets)
def main():

Powered by Google App Engine
This is Rietveld 408576698