Create a util.py Python module for common functions

Extracting these functions helps avoid circular dependencies,
and make them easier to find/reuse.
This commit is contained in:
Aneesh Agrawal 2017-01-13 21:55:33 -05:00
parent 5b8d783f4c
commit 02b054ec9e
6 changed files with 160 additions and 141 deletions

View file

@ -24,7 +24,8 @@ from mach.decorators import (
Command,
)
from servo.command_base import CommandBase, cd, call, BIN_SUFFIX, host_triple, find_dep_path_newest
from servo.command_base import CommandBase, cd, call, BIN_SUFFIX, find_dep_path_newest
from servo.util import host_triple
def format_duration(seconds):