From 088b26b20a8459100fc8442046a8420226d101e9 Mon Sep 17 00:00:00 2001 From: Andrew Halberstadt Date: Tue, 20 Apr 2021 10:32:50 -0400 Subject: [PATCH] [taskcluster] Use string.capitalize() rather than custom utility function --- taskcluster/fenix_taskgraph/transforms/build.py | 3 +-- taskcluster/fenix_taskgraph/util.py | 11 ----------- 2 files changed, 1 insertion(+), 13 deletions(-) delete mode 100644 taskcluster/fenix_taskgraph/util.py diff --git a/taskcluster/fenix_taskgraph/transforms/build.py b/taskcluster/fenix_taskgraph/transforms/build.py index 032a746a6f..c4514f2368 100644 --- a/taskcluster/fenix_taskgraph/transforms/build.py +++ b/taskcluster/fenix_taskgraph/transforms/build.py @@ -12,7 +12,6 @@ import datetime from taskgraph.transforms.base import TransformSequence from fenix_taskgraph.gradle import get_variant -from fenix_taskgraph.util import upper_case_first_letter transforms = TransformSequence() @@ -72,7 +71,7 @@ def build_gradle_command(config, tasks): task["run"]["gradlew"] = [ "clean", - "assemble{}".format(upper_case_first_letter(variant_config["name"])) + "assemble{}".format(variant_config["name"].capitalize()), ] yield task diff --git a/taskcluster/fenix_taskgraph/util.py b/taskcluster/fenix_taskgraph/util.py deleted file mode 100644 index d613fc2f77..0000000000 --- a/taskcluster/fenix_taskgraph/util.py +++ /dev/null @@ -1,11 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -from __future__ import absolute_import, print_function, unicode_literals - -import re - - -def upper_case_first_letter(string): - return string[0].upper() + string[1:]