aboutsummaryrefslogtreecommitdiff
path: root/llvm_tools/update_chromeos_llvm_next_hash.py
diff options
context:
space:
mode:
Diffstat (limited to 'llvm_tools/update_chromeos_llvm_next_hash.py')
-rwxr-xr-xllvm_tools/update_chromeos_llvm_next_hash.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm_tools/update_chromeos_llvm_next_hash.py b/llvm_tools/update_chromeos_llvm_next_hash.py
index 418c1a21..d1a85fb0 100755
--- a/llvm_tools/update_chromeos_llvm_next_hash.py
+++ b/llvm_tools/update_chromeos_llvm_next_hash.py
@@ -26,6 +26,8 @@ from get_llvm_hash import is_svn_option
ce = command_executer.GetCommandExecuter()
+CommitContents = namedtuple('CommitContents', ['url', 'cl_number'])
+
def GetCommandLineArgs():
"""Parses the command line for the optional command line arguments.
@@ -410,8 +412,6 @@ def GetGerritRepoUploadContents(repo_upload_contents):
if not found_url:
raise ValueError('Failed to find change list URL.')
- CommitContents = namedtuple('CommitContents', ['url', 'cl_number'])
-
cl_number = int(found_url.group(1))
return CommitContents(url=found_url.group(0), cl_number=cl_number)