Cleaned up the use of calling lib.Utils.Utils

This commit is contained in:
Gregory Ballantine 2017-07-31 18:01:46 -04:00
parent fdd3e958dc
commit 2ef1620e8e

View File

@ -1,4 +1,4 @@
from lib import Utils
from lib.Utils import Utils
import os
import sh
import sys
@ -27,7 +27,7 @@ class FormulaRepo():
branch_lines = self.repo.branch()
# loop through the branches
for line in branch_lines:
bits = Utils.Utils.remove_ansi_from_list(line.split())
bits = Utils.remove_ansi_from_list(line.split())
# check if the branch was marked as current
if bits[0] == '*':
branches.append(bits[1])
@ -42,7 +42,7 @@ class FormulaRepo():
branches = self.repo.branch()
# loop through the branches
for line in branches:
bits = Utils.Utils.remove_ansi_from_list(line.split())
bits = Utils.remove_ansi_from_list(line.split())
# check for if a branch is listed as current
if bits[0] == '*':
# return the branch name