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

Unified Diff: webrtc/tools/barcode_tools/helper_functions.py

Issue 2736233003: PyLint fixes for tools-webrtc and webrtc/tools (Closed)
Patch Set: Fix alignment Created 3 years, 9 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
« no previous file with comments | « webrtc/tools/barcode_tools/build_zxing.py ('k') | webrtc/tools/barcode_tools/yuv_cropper.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/tools/barcode_tools/helper_functions.py
diff --git a/webrtc/tools/barcode_tools/helper_functions.py b/webrtc/tools/barcode_tools/helper_functions.py
index fb9854f8a3397e457b1a8a2273fa9c3e093e611c..e27322f41f92670b711ae5f8a8a7b6071e1407c3 100644
--- a/webrtc/tools/barcode_tools/helper_functions.py
+++ b/webrtc/tools/barcode_tools/helper_functions.py
@@ -20,7 +20,7 @@ class HelperError(Exception):
pass
-def zero_pad(number, padding=_DEFAULT_PADDING):
+def ZeroPad(number, padding=_DEFAULT_PADDING):
"""Converts an int into a zero padded string.
Args:
@@ -35,7 +35,7 @@ def zero_pad(number, padding=_DEFAULT_PADDING):
return str(number).zfill(padding)
-def run_shell_command(cmd_list, fail_msg=None):
+def RunShellCommand(cmd_list, fail_msg=None):
"""Executes a command.
Args:
@@ -60,8 +60,8 @@ def run_shell_command(cmd_list, fail_msg=None):
return output.strip()
-def perform_action_on_all_files(directory, file_pattern, file_extension,
- start_number, action, **kwargs):
+def PerformActionOnAllFiles(directory, file_pattern, file_extension,
+ start_number, action, **kwargs):
"""Function that performs a given action on all files matching a pattern.
It is assumed that the files are named file_patternxxxx.file_extension, where
@@ -86,7 +86,7 @@ def perform_action_on_all_files(directory, file_pattern, file_extension,
process_pool = multiprocessing.Pool(processes=multiprocessing.cpu_count())
results = []
while True:
- zero_padded_file_number = zero_pad(file_number)
+ zero_padded_file_number = ZeroPad(file_number)
file_name = file_prefix + zero_padded_file_number + '.' + file_extension
if not os.path.isfile(file_name):
break
« no previous file with comments | « webrtc/tools/barcode_tools/build_zxing.py ('k') | webrtc/tools/barcode_tools/yuv_cropper.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698